#1
|
|||
|
|||
Collision and avatar animation
hi every body
I have an avatar and a little ball in my world. I shoot the ball toward the avatar and I need to notify the collision. every thing is OK until the state of avatar was ordinary (avatar.state(1)). when I changed the state of avatar(using prebuilt animation of avatars) such as lieing on the ground(avatar.state(8)), collision occurred but not true. collision occur like when avatar`s state was 1(avatar.state(1)). the physics for avatar is collideMesh and for ball is collideSphere. I need when the state change to 8, collision do not occur but if the ball hits the lied avatar, collision notify occur. any body has any idea? please help!!!
__________________
MSc Shahram Shahraki |
#2
|
|||
|
|||
The collideMesh collision shape is not automatically updated when the state of the avatar changes. To make sure the shape matches the avatar you'll need to create a new one each frame and remove the old one using the collideNone command.
|
#3
|
|||
|
|||
thank you Man. but this takes a lot of CPU power however thanks. you solved my problems
__________________
MSc Shahram Shahraki |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Start_position on animation path | ptjt255 | Vizard | 1 | 08-24-2009 12:40 PM |
avatar collision | 5ky1ine | Vizard | 1 | 04-22-2009 12:23 PM |
Collision with child nodes | rubberpimple | Vizard | 4 | 09-17-2008 05:27 PM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 10:44 AM |
Collision with avatars and scene not working | JvdBosch | Vizard | 12 | 09-14-2006 07:01 PM |