Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
12 views

Bullet Physics, btRigidBody Problems [on hold]

I am learning game development and I have problems when I was developing my character, I am using btRigidBody to my character. I created a jump, move (using impulses) and duck actions for my ...
0
votes
1answer
63 views

Can't go above max speed with RigidBody2D.AddForce()

I'm having trouble making a character move faster than a certain limit using RigidBody2D.AddForce(). My game is a top-down 2D game (constrained to the x/y plane). I'm using a float 'MovementSpeed' to ...
1
vote
1answer
72 views

Warp GameObject Size When Entering/Leaving Area

Below I have an image describing the desired functionality I am going for. Let's say you control a square and when you move this square into a given area, any part of your rigidbody/model inside of ...
2
votes
1answer
115 views

How can I ensure character weapon is also included in collision detection?

I have two models, my player character and her weapon. Each can be controlled independently (that is, I allow the player to aim the weapon). The object hierarchy is: Character (with ...
0
votes
0answers
22 views

Maya shatter collision without interpenetration

I'm a newbie in Maya and after days of Googling I still cannot find the answer to my question. I'm making a solid shatter in Maya, as expected, the rigidbodies interpenetrate with each other. And the ...
2
votes
1answer
86 views

How can I trigger an event each time the rotation of my rigidbody2D is at a given value?

I would like to trigger an event each time my rigidbody2D is at a particular value. The event should only be triggered once for each given value per complete object revolution. Initial attempts at ...
0
votes
1answer
51 views

AddRelativeForce not working correctly

I am stuck on the code for couple of days but couldn't figure it out. Therefore I turned out to look the answer here but couldn't find any that match the requirement Hope some One might help here is ...
0
votes
1answer
53 views

Unity Rigidbody2D to act on certain gameobject only

I am creating a 2D game and the player object has a rigidbody2D attached to it. The game works fine until the player collides with a power up. The rigidbody physics get all messed up. So I was ...
2
votes
2answers
54 views

How can I add an impulse to specific rigid bodies at rest?

Scenario Rocks falling down a rocky slope, with a flat surface at the bottom. When they land on the surface, the rocks move slightly before coming to a rest. GLESDebugDraw shows the bright orange ...
2
votes
1answer
188 views

Inverse Explosion with Unity2d

I am currently trying to make all other objects push away from the player when the player explodes. It currently works, but it pushes close objects a little and far objects very far. What I want is ...
0
votes
1answer
192 views

Repelling a rigidbody in the direction an object is rotating

Working in Unity, I have a game object which I rotate each frame, like so: void Update() { transform.Rotate(new Vector3(0, 1, 0) * speed * Time.deltaTime); } However, I'm running into problems ...
1
vote
0answers
65 views

unity4.3 rigidbody2d unexpected force behaviour

So guys ive edited the question and here is what my problem is i have a player which has a rigidbody2d attached to it.my player is able to doublejump in the air nicely and stick to walls when ...
0
votes
0answers
83 views

Swiping with rigidbody

My character moves continuously forward with rigidbody.velocity = v3Force * strength; My Swipe script is based on a youtube tutorial from https://www.youtube.com/watch?v=9ZIHx09GevI I just changed ...
0
votes
0answers
124 views

Realistic collisions with a kinematic rigidbody?

I have a car game where player drives a car; this car has a collider and a kinematic rigidbody attached and is completely controller by script (i.e. a script sets its position and rotation). In the ...
2
votes
2answers
80 views

Can I make a character solid but not lose non-physics behaviour?

My character can walk around in the world, but walks through other objects, for example a cylinder (stand-in for a cannon). To fix this I added a capsule collider to each of the character and ...
0
votes
0answers
126 views

Calculate mass moment of inertia of two 2D polygons

For a small 2D physics engine I need to know the following. I wasn't able to find an answer even after a week of research. Hope you can help me. I have multiple concave 2D polygons that are tight ...
3
votes
1answer
141 views

Calculating impulse with multiple collision points

In my amateur 2D rigid body physics engine for a game I react on collisions between two bodies with an impulse j (formula 11) as explained here. To calculate this impulse I need one contact point P ...
0
votes
0answers
48 views

Memory Management on Physic Body Frames in Unity

Compared from the Android programming with the help of LibGDX and Eclipse programming software in making 2D physics based game from this previous question, what if I'm throwing lots of game objects ...
-1
votes
2answers
2k views

How to move rigidbodies

Have i understood this correct: If i want to use a rigidbody for physics then i should not move an object through its transform.position. I should never move it by riigidbody.velocity since i then ...
0
votes
1answer
102 views

making rigid body stop using friction

how am I suppose to apply friction to an object so that when I apply force it decelerates eventually to zero? Here are my physics objects: Rigid Body "Sphere" Collision shape: btSphereShape(0.50) ...
2
votes
1answer
424 views

bullet character controller sliding down any slope gradient

I've been experimenting with the btKinematicCharacterController. I've seen very old complaints that it has issues but I can't find anything recent stating that these issues remain (and nobody ever ...
0
votes
1answer
155 views

3rd person game with rigid body

Im making a 3rd person 3D game. I have a little capsule shaped player controlled drone at the moment that moves on a flat surface. Y axis is locked. The Game object contains a script and then the ...
1
vote
1answer
1k views

How to slide a non-kinematic rigidbody?

I'm studying Unity3d, coming from a 2d background, and I'm a bit confused how some things work. I'd like to slide a non-kinematic rigidbody, i.e. "just move it forward", like if it was hovering over ...
0
votes
1answer
452 views

Unity AddExplosionForce not doing anything

Recently I've started learning Unity3D. I'm working on a game as an exercise in which you control a space ship and have to dodge asteroids. If you feel like it's getting a bit too much you can hit the ...
0
votes
2answers
112 views

How can I simulate a rigid body bounced from a wall in 3D world?

How can I simulate a rigid sword bounced from a wall and hit the ground (like in physical world)? I want to use this for a simple animation. I can detect the figure and the size of the sword (maybe ...
3
votes
2answers
851 views

Unity 4 - Some Rigidbodies Won't Fall Asleep

I'm having this problem in the free edition of Unity 4.1 where rigidbodies aren't falling asleep (and yes, I've tried playing with the sleepVelocity and sleepAngularVelocity values!). I've read the ...
1
vote
2answers
342 views

Jump without bouncing in physics engine

I am using Ogre3D as my rendering API, and OgreBullet as my physics engine. I have an test entity that when the y part of the velocity is 0 and spacebar is pressed, the velocity changes to, lets say: ...
3
votes
1answer
81 views

Adjusting a skeleton to a Specific Stance

Imagine having a climbing wall and you take 4 adjacent handholds and footholds where together they create a stance. Is there any algorithm or technique with which it would give you a realistic human ...
4
votes
2answers
296 views

Creating stable tentacle structures

I am using verlet integration to simulate some tentacles. So far it works great and I am satisfied with how it looks in general. Here is how a tentacle is built: The very stiff sticks are colored ...
6
votes
3answers
358 views

Calculating impulse propagation through a rigid body after a collision

I'm working on a game. I need to work out what the impulse is at different points on a body as a result of a collision. For example, in the following diagram, if there is a collision that results in ...
2
votes
0answers
209 views

Inverse Dynamics How to [closed]

I have some motion capture data (kinect) that records all body joints (32fps) and I want to take particular positions (for example when a person moves both of his hands up in the sky in celebration ...
2
votes
2answers
269 views

Procedural generation of physics-enabled structures (in a 2D world)

Is it possible to procedurally generate stable structures out of rigidbody objects at a reasonable runtime speed? Imagine Angry Birds's levels kind of structures but generated procedurally.
1
vote
1answer
802 views

Strange behavior of RigidBody with gravity and impulse applied

I'm doing some experiments trying to figure out how physics works in Unity. I created a cube mesh with a BoxCollider and a RigidBody. The cuve is laying on a mesh plane with a BoxCollider. I'm ...
2
votes
1answer
3k views

Understanding Unity3d physics: where is the force applied?

I'm trying to understand which is the right way to apply forces to a RigidBody. I noticed that there are AddForce and AddRelativeForce methods, one applied in world space coordinate system meanwhile ...
4
votes
1answer
8k views

How to detect collision in Unity3D without rigid bodies?

The target platform of my game is mobile devices therefore I try to develop it performance oriented. It will be a strategy game so I don't really need physics in it, consequently I did not add ...
2
votes
2answers
736 views

Getting one rigidbody to follow another, but still react to stuff Unity3D/C#

Basically what I'm doing is having a ball you can pick up and drop on a ramp. When you pick up the first ball, the second ball follows close behind, and when you drop the first ball on to the ramp the ...
1
vote
2answers
333 views

Dynamic body implementation

I am writing a 2D game where one of the characters has some very particular requirements. This character is a body with no particular shape (similar to a fluid, but not so much), it has to be able to ...
3
votes
2answers
939 views

How can I implement revolute (hinge) joints in a 2d physics system?

Further to my previous question on fixed joints, I am now going toe-to-toe with hinge joints in 2D physics. Though the answer to the previous question was excellent, I have come across a few problems ...
4
votes
1answer
2k views

How can I implement fixed joints in a 2D physics system?

I'm developing a simple, 2D physics system to complement an entity/component game object framework. So far, I have implemented some basic, tutorial-level physics. An entity that is affected by physics ...
4
votes
3answers
902 views

Kinematics of a die roll?

I'm working on a simple 3D game. In the game, sometimes the players have to roll die (a D8 to be exact). I wish to represent the rolling die with a 3D model, and I'd like to animate it in 3D space as ...
6
votes
5answers
2k views

Why do objects interpenetrate in this simple collision solver?

The code below is from a Microsoft XNA sample here. This is quite a simple rigid body simulation that ignores many physical effects (such as angular momentum), but it does try to push objects ...