WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-26-2010, 03:48 AM
shahramy shahramy is offline
Member
 
Join Date: Dec 2009
Posts: 41
Red face 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
Reply With Quote
  #2  
Old 10-26-2010, 10:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 10-27-2010, 12:47 AM
shahramy shahramy is offline
Member
 
Join Date: Dec 2009
Posts: 41
thank you Man. but this takes a lot of CPU power however thanks. you solved my problems
__________________
MSc Shahram Shahraki
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC