Jump to content

  • Log In with Google      Sign In   
  • Create Account


PhysX examples of static,dynamic and kinematic actors


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 noatom   Members   -  Reputation: 709

Like
0Likes
Like

Posted 14 July 2012 - 09:58 AM

Ok,reading the documentation of PhysX made me a little dizzy.So,can someone give me some examples of some statis,dynamic and kinematic actors?

Also: suppose I have a third person game,so I'm in control of a character.When I move my character with W,A,S,D,my character is a dynamic actor or dynamic kinematic actor?

also(some real definitions of static,dynamic and kinematic actors would help a lot!).Thanks!

Alexander Turda - The place where I talk about games, coding, movies, and whatever passes through my mind.


Sponsor:

#2 Hodgman   Moderators   -  Reputation: 24060

Like
1Likes
Like

Posted 14 July 2012 - 10:25 AM

Static doesn't move (e.g. a building or terrain). Dynamic can move (e.g. a cardboard box or a vehicle).

Kinematic is a dynamic actor that can ignore the rules of physics, and just does what you tell it to (e.g. a player controlled avatar or a scripted elevator). This is kind of a hack that lets your game directly control the player without worrying about dynamic objects being able to knock them around, or having them fall over due to being off balance. You're responsible for their movement, and they can knock dynamic stuff out of the way. They're used when you've got your own simpler version of physics that you want to use for an object, and you don't want the physics engine to have any control over it.

Edited by Hodgman, 14 July 2012 - 10:28 AM.


#3 noatom   Members   -  Reputation: 709

Like
0Likes
Like

Posted 14 July 2012 - 12:21 PM

So if I make a third person shooter game,my character that I control with W,A,S,D, should be a dynamic actor or a dynamic kinematic actor?

Alexander Turda - The place where I talk about games, coding, movies, and whatever passes through my mind.


#4 Hodgman   Moderators   -  Reputation: 24060

Like
0Likes
Like

Posted 15 July 2012 - 04:46 AM

So if I make a third person shooter game,my character that I control with W,A,S,D, should be a dynamic actor or a dynamic kinematic actor?

This is what kinematic actors were designed for, yes. However, you're then responsible for all of their movement logic, including gravity, etc...

N.B. a dynamic actor could also be used, but you face different problems in that case, such as making sure they don't fall over sideways, etc...

Edited by Hodgman, 16 July 2012 - 04:39 AM.


#5 saejox   Members   -  Reputation: 714

Like
0Likes
Like

Posted 16 July 2012 - 03:07 AM

there is a major caveat for kinematic actors.
they do not trigger callbacks.
you will not get a callback when a "box" hit a kinematic object.
you need to use rays or sweeps to get objects around your actor.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS