[SOLVED] Problem with custom force callback

albino

24-02-2007 15:53:25

hello

i tried to add some movement to my object but i got this error message

------ Build started: Project: StorageJack, Configuration: Debug Win32 ------
Compiling...
OgreNewtonApplication.cpp
c:\ogresdk\storagejack\storagejack\ogrenewtonapplication.cpp(169) : error C2664: 'void OgreNewt::Body::setCustomForceAndTorqueCallback<OgreNewtonFrameListener>(boost::function<Signature,Allocator>,c *)' : cannot convert parameter 2 from 'OgreNewtonApplication *const ' to 'OgreNewtonFrameListener *'
with
[
Signature=void (OgreNewtonFrameListener *,OgreNewt::Body *),
Allocator=std::allocator<void>,
c=OgreNewtonFrameListener
]
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\OgreSDK\StorageJack\StorageJack\Build\Debug\BuildLog.htm"
StorageJack - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


any ideas how to fix this?

thanks

albino

25-02-2007 10:00:01

hm.... well i solved it :oops:

OvermindDL1

27-02-2007 00:52:44

You tried to pass an application instance to something that wanted a framelistener instance. :)