About Store Forum Documentation Contact



Post Reply 
Physics mass
Author Message
b1s Offline
Member

Post: #1
Physics mass
Hmm.. I'm trying to achieve a way for deny the player of moving all the dynamic objects in the scene. for instance he should not be able to push enemies and large objects like pianos, walls etc.
I've been trying to make heads or tails about the dominance factors but really it just does not seem to work at all.
I have tried to give different object types different dominance values and in "Init" i have tried to set Dominance pairs like Physics.dominance(1,2,1,0);
or something like that. no matter what i try with any given numbers there seems to be no difference.
Only thing that i can achieve is that if player has dominance 0. He can push everything. If he has anything more than 0. He can push everything?
Any ideas here what I'm doing wrong?

I also tried fiddeling with masses and damping values but with little success.
(This post was last modified: 05-02-2010 10:15 PM by b1s.)
05-02-2010 10:14 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Physics mass
as for dominance it must be some sort of issue under PhysX,

for not moving other objects, I'd recommend setting them as kinematic (Actor::kinematic) or
make them static (create actor with mass=0)

more info is available in the docs - actors
05-03-2010 12:41 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: Physics mass
i already manage to did just that smile but yeah thanks anyway.
05-03-2010 06:17 PM
Find all posts by this user Quote this message in a reply
Post Reply