Search found 3 matches
- Fri Aug 20, 2010 7:58 pm
- Forum: Questions and Help
- Topic: Remove triangleMesh from space
- Replies: 4
- Views: 3607
Re: Remove triangleMesh from space
Sometimes I wonder how I can use a computer. I forgot the cast from object to StaticTriangleGroup. I extended my StaticModel.cs too. Thank you! public void handleSphereCollision(Entity sender, Entity other, CollisionPair pair) { StaticModel sm = (StaticModel)other.tag; StaticTriangleGroup stg = (Sta...
- Fri Aug 20, 2010 6:22 pm
- Forum: Questions and Help
- Topic: Remove triangleMesh from space
- Replies: 4
- Views: 3607
Re: Remove triangleMesh from space
If i set "triangleGroup.tag = triangleGroup" instead "triangleGroup.tag = staticModel " , then i cant use it with "space.remove(other)" I don't now exactly what this mean. How do I delete a group instead of an entity? My code: (in LoadContent) physicsSphere.eventManager...
- Fri Aug 20, 2010 4:13 pm
- Forum: Questions and Help
- Topic: Remove triangleMesh from space
- Replies: 4
- Views: 3607
Remove triangleMesh from space
Is there a difference between a entity (Box, Sphere etc.) and a triangle mesh, if you want to delete them
from physics space? When i delete them after a collision, i see this error a few updates later: "Cannot
remove entity from this space as it belongs to a different or no space"
from physics space? When i delete them after a collision, i see this error a few updates later: "Cannot
remove entity from this space as it belongs to a different or no space"