Crystal Space
Welcome,
Guest
. Please
login
or
register
.
June 18, 2013, 07:20:33 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9261
Posts in
2262
Topics by
5443
Members
Latest Member:
Michealclark
Crystal Space
Crystal Space Development
Support
Strange occurence with move callbacks
« previous
next »
Pages:
[
1
]
Author
Topic: Strange occurence with move callbacks (Read 1173 times)
koocake
Jr. Member
Posts: 54
Strange occurence with move callbacks
«
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"
SCF_IMPLEMENT_IBASE(Car_Move_Callback);
SCF_IMPLEMENTS_INTERFACE (iDynamicsMoveCallback);
SCF_IMPLEMENT_IBASE_END;
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;
car->SetCollisionCallback(ccb);
//car->SetMoveCallback(mcb);
car->Update();
Any idea as to what is happeneing here?
regards,
Kate
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...