Hi I've just recently started using Bepu and I think it's awesome, but for now I just want to my camera to be able to interact with the objects.
I want something simple that encompasses the camera and can be used to interact with the objects along with the mesh map
kind of like what a traditional boundingsphere does
I've heard something about a floating sphere but I'm not quite sure how to implement that.
Also
the samples at http://bepuphysics.codeplex.com/SourceC ... evelopment
all seem to give me an error when I try to run them.
"No devices are available to deploy project 'Xbox360 Copy of BEPUphysicsDemos'. Register a device using the XNA game Studio Device Center."
How can I run the project off my pc rather than off a device?
thanks
floating sphere help?
Re: floating sphere help?
To start with, you'll need some object that the camera's position follows. That object will need to be able to move.Hi I've just recently started using Bepu and I think it's awesome, but for now I just want to my camera to be able to interact with the objects.
I want something simple that encompasses the camera and can be used to interact with the objects along with the mesh map
The "Entity" class is the superclass of all objects capable of movement. The Sphere class is a convenience type which is an Entity built with a SphereShape.
There are two kinds of entities: kinematic and dynamic. Kinematic entities have essentially infinite mass and inertia. They will not respond to collisions. The only way to change their velocity is to do so directly by setting the velocity properties.
Dynamic entities, on the other hand, respond to collisions and constraints like a regular physical object. This is what you'll want your camera to be. If you have set a nonzero gravity for your simulation, you'll probably want to make the camera's IsAffectedByGravity property false.
To make a dynamic entity, pass a mass into the constructor. If no mass is specified, the entity will be kinematic. You can also change it after the fact using the BecomeDynamic and BecomeKinematic methods.
You can then make the sphere entity that your camera is following move by setting/adding to its LinearVelocity property. A hacky but quick and easy way to make a 'max speed' is to set the LinearDamping quite high. Some other more robust/complicated methods of controlling velocities can be found on the forums and in the demos, particularly in the character controllers (SimpleCharacterController).
Right click on the BEPUphysicsDemos PC project and click "Set as StartUp Project". Also, if it's building the Xbox360 version, go to the Build menu up top, and then the Configuration Manager. Switch the Active Solution Platform to x86 if it's something else.all seem to give me an error when I try to run them.
"No devices are available to deploy project 'Xbox360 Copy of BEPUphysicsDemos'. Register a device using the XNA game Studio Device Center."
How can I run the project off my pc rather than off a device?