Crystal Space
Welcome, Guest. Please login or register.
September 22, 2017, 09:23:52 am

Login with username, password and session length
Search:     Advanced search
9054 Posts in 2047 Topics by 74102 Members
Latest Member: Imsculouvom19
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Strange occurence with move callbacks
« previous next »
Pages: [1] Print
Author Topic: Strange occurence with move callbacks  (Read 1537 times)
Jr. Member
Posts: 54

View Profile
« on: February 15, 2006, 06:31:17 pm »

I have set up a move callback class in a similar way to the collision callback class i defined before.
My class looks like this:

#include "car_move_callback.h"


void Car_Move_Callback::Execute (iMeshWrapper* mesh, csOrthoTransform& t)
  csPrintf("Car moved!");

void Car_Move_Callback::Execute (iLight* light, csOrthoTransform& t)

void Car_Move_Callback::Execute (iCamera* camera, csOrthoTransform& t)

void Car_Move_Callback::Execute (csOrthoTransform& t)

However, when I set the move callback to the car's iRigidBody, upon starting the application, the car gets placed at a strange location stuck in the wall of the room, rather than its usual place. When I comment out the code to set the move callback, the car is positioned as normal. This is the code with the move callback set commented out.

  iDynamicsCollisionCallback* ccb = &collCallback;
  //iDynamicsMoveCallback* mcb = &moveCallback;

Any idea as to what is happeneing here?

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.205 seconds with 15 queries.