yoshinoToylogic / bulletsharp

Automatically exported from code.google.com/p/bulletsharp
MIT License
0 stars 0 forks source link

'BulletSharp.ActionInterface' has no constructors defined #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to subclass ActionInterface within C#

What is the expected output? What do you see instead?
A subclass which lets me override UpdateAction.

I get the error:
"""
The type 'BulletSharp.ActionInterface' has no constructors defined.
"""

I'm guessing this is because the constructor is not public?

What version of the product are you using? On what operating system?
Using 1.81 on .NET4

Cheers!

Original issue reported on code.google.com by asheepca...@gmail.com on 19 Jan 2013 at 8:21

GoogleCodeExporter commented 8 years ago
ActionInterface currently exists to support RaycastVehicle and other such 
subclasses in Bullet. 
http://bulletphysics.com/Bullet/BulletFull/classbtActionInterface.html

Overriding it with a custom implementation is not supported at the moment, but 
I'll try to make it happen since it seems useful.

Thanks for reporting!

Original comment by andres.traks on 20 Jan 2013 at 2:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r453.

Original comment by andres.traks on 24 Jan 2013 at 5:30

GoogleCodeExporter commented 8 years ago
There is now an IActionInterface interface (might still rename it to IAction). 
Any class implementing IActionInterface can be passed to the dynamics world.
See demos/Generic/VehicleDemo/CustomVehicle.cs for an example.

Original comment by andres.traks on 24 Jan 2013 at 5:34

GoogleCodeExporter commented 8 years ago
Awesome, thanks very much!  Really appreciate you taking the time to put 
CustomVehicle together too.

Best,

John

Original comment by asheepca...@gmail.com on 24 Jan 2013 at 6:30

GoogleCodeExporter commented 8 years ago
Awesome, thanks very much!  Really appreciate you taking the time to put 
CustomVehicle together too.

Best,

John

Original comment by asheepca...@gmail.com on 24 Jan 2013 at 6:30