Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NETNamespace: Visual3D.PhysicsNew.Bullet
Assembly: Visual3D.Physics (in Visual3D.Physics.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: Visual3D.Physics (in Visual3D.Physics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
[SerializableAttribute] public class BulletVehicle : PhysicalEntity, IVehicle, IPhysicalControllable
<SerializableAttribute> _ Public Class BulletVehicle _ Inherits PhysicalEntity _ Implements IVehicle, IPhysicalControllable
Members
| All Members | Constructors | Fields | Properties | Methods | Events |
| Member | Description | |
|---|---|---|
| BulletVehicle()()()() | Initializes a new instance of the BulletVehicle class | |
| BulletVehicle(VehicleSettings) | Initializes a new instance of the BulletVehicle class | |
| _nitroEnergy | ||
| Accel | ||
| Activate(ObjectPhysics) | (Overrides PhysicalEntity..::..Activate(ObjectPhysics).) | |
| AdditionalGravityForceWhenElevated | ||
| ApplayImpulse(Vector3) | ||
| Beep()()()() | ||
| BeepSound | ||
| Brake | ||
| BrakeSound | ||
| BreakingForce | ||
| ChassisBody | ||
| ChassisLocalOffset | ||
| Clone()()()() | (Inherited from PhysicalEntity.) | |
| Components | Components that are attached to this Entity. (Inherited from ComponentBase.) | |
| ComponentsForGlobalSceneFolders | (Inherited from ComponentBase.) | |
| ContactBegan | (Inherited from PhysicalEntity.) | |
| ContactEnded | (Inherited from PhysicalEntity.) | |
| Context | Defines the Owner of this component as well as the role (i.e. 'slot') that this component fulfills. (Inherited from ComponentBase.) | |
| CrashSound | ||
| CreateInstance(Boolean) | (Inherited from PhysicalEntity.) | |
| CreateService<(Of <<'(TService>)>>)()()()() | (Inherited from ComponentBase.) | |
| CurrentGear | ||
| CurrentSpeed | Return current speed in km\h.
| |
| Deactivate()()()() | (Overrides PhysicalEntity..::..Deactivate()()()().) | |
| DestroyOnNextSimulationStep()()()() | (Inherited from PhysicalEntity.) | |
| Dispose()()()() | (Inherited from ComponentBase.) | |
| Disposed | (Inherited from PhysicalEntity.) | |
| DriveController | ||
| Elevate()()()() | ||
| EngineOffSound | ||
| EngineOnSound | ||
| EnginePower | ||
| EngineSound | ||
| GearDownSound | ||
| GearSwitched | ||
| GearUpSound | ||
| GetService<(Of <<'(TService>)>>)()()()() | (Inherited from ComponentBase.) | |
| GetService<(Of <<'(TService>)>>)(TService%) | (Inherited from ComponentBase.) | |
| GroundedThreshold | ||
| GroundSurfacesCanDriveOn |
Default is GroundSurface. Can change to Terrain to possibly improve performance greatly, but will prevent vehicle from driving on terrain or ground/road, etc, meshes. If most of scene should be considered driveable (and not driveable if too high above current surface, eg. so vehicle can't drive over a wall), can possibly change this to StaticEnvironment to prrevent need for setting Physics.IsGroundSurface = true for each road, etc.
| |
| HasComponents | (Inherited from ComponentBase.) | |
| HasOwner | (Inherited from PhysicalEntity.) | |
| HeightAboveGround | ||
| IdleSound | ||
| IsDeserialized | Indicates if Instance was created by Deserialization. (Inherited from ComponentBase.) | |
| IsDisposed | Indicates if Dispose() was called for this instance (and it's either in process of Disposing or already fully disposed). (Inherited from ComponentBase.) | |
| IsGroundSurface |
Indicates if physical entity is included to physics based GetHeightAt querry by default.
It is used by Terain, GroundSurface, MoveablePlatform physical classes by default.
(Inherited from PhysicalEntity.) | |
| IsInitialized |
Indicates if a physical entity is initialized and ready for use.
(Inherited from PhysicalEntity.) | |
| IsInitializedWithOwner | (Inherited from PhysicalEntity.) | |
| IsInSimulation | (Overrides PhysicalEntity..::..IsInSimulation.) | |
| IsInWorld |
Indicates if physical entity is added to physics world.
(Inherited from PhysicalEntity.) | |
| IsNearGround()()()() | ||
| IsNitroOn | ||
| IsOnGround()()()() | ||
| IsSaved | Indicates if the component is to be Saved when the owning context is saved
(e.g. for components in your scene, this controls whether or not they are saved to the scene file when the scene is saved).
Typically objects are 'Saved', unless they are transient to be programmatically created each time. (Inherited from ComponentBase.) | |
| LoadInactive |
Set it to TRUE and a physical entity will be loaded to scene in inactive state.
Using of this option increases perfromance on start-up.
(Inherited from PhysicalEntity.) | |
| Mass | ||
| Motion | (Inherited from PhysicalEntity.) | |
| Name | (Inherited from PhysicalEntity.) | |
| NearGroundThreshold | ||
| NitroEnergy | ||
| NitroSound | ||
| NonScaledSize | (Inherited from PhysicalEntity.) | |
| OnContactBegin(CollisionEventArgs) | (Inherited from PhysicalEntity.) | |
| OnContactEnded(CollisionEventArgs) | (Inherited from PhysicalEntity.) | |
| OnFinished()()()() | ||
| OnMemberwiseClone()()()() | (Inherited from ComponentBase.) | |
| OnMoveAndTurn(Single, Single, Boolean) | NOTE: If turnScale is below threshold, _absTurnScale will be zero.
| |
| OnOwnerPreparedForUse()()()() | (Inherited from PhysicalEntity.) | |
| OnOwnerSpeedScalarChanged(Single, Single) | Override with logic to respond to changes in Owner Speed. (Inherited from PhysicalEntity.) | |
| OnTurnScale(Single) | ||
| OwnerEntity |
Gets owner of a physical entity.
(Inherited from PhysicalEntity.) | |
| OwnerSettings | (Inherited from PhysicalEntity.) | |
| OwnerSpatial | (Inherited from PhysicalEntity.) | |
| PerfectFriction | ||
| Persist | True to serialize. When false, will re-create whenever deserialize.
| |
| PhysicalType |
Type of physical entity.
(Inherited from PhysicalEntity.) | |
| PhysicsSystem |
Gets\Sets a physical system in which a physical entity is placed.
(Inherited from PhysicalEntity.) | |
| PhysicsSystemChanged | (Inherited from PhysicalEntity.) | |
| ReportCollisions | (Inherited from PhysicalEntity.) | |
| Restore()()()() | ||
| RigidBody | ||
| Scale | (Inherited from PhysicalEntity.) | |
| SetPhysicsSystemWithoutNotification(PhysicsSystem) | (Inherited from PhysicalEntity.) | |
| Settings | ||
| SetWorldTransform(Matrix, Boolean) | (Inherited from PhysicalEntity.) | |
| Size | (Inherited from PhysicalEntity.) | |
| SkidSound | ||
| SteeringValue | ||
| Synchronize()()()() | ||
| TargetSpeed | In m/sec. Like Settings.MaxSpeed, but is adjusted by turns and by path logic,
when VariableTargetSpeed=true.
User logic usually uses Settings.MaxSpeed, rather than this.
Setter only has effect when VariableTargetSpeed=true.
(Because internal field is ignored by getter, when VariableTargetSpeed=false.)
| |
| ToString()()()() | (Inherited from PhysicalEntity.) | |
| TurnOffEngine()()()() | ||
| TurnOnEngine()()()() | ||
| UpdateState(Single) | ||
| UprightMaxForce | ||
| UprightTolerance | ||
| VariableTargetSpeed | ||
| Vehicle | ||
| VehicleStabilizersEnabled | Indicates if Vehicle stabilization logic is to be enabled (which helps avoid car tipping, etc) | |
| VisualOffset | (Inherited from PhysicalEntity.) | |
| VisualWorldOffset | (Inherited from PhysicalEntity.) | |
| WorldPosition | (Inherited from PhysicalEntity.) | |
| WorldTransform | (Overrides PhysicalEntity..::..WorldTransform.) |
Inheritance Hierarchy
System..::..Object
Visual3D.EntityModel..::..ComponentBase
Visual3D.PhysicsNew..::..PhysicalEntity
Visual3D.PhysicsNew.Bullet..::..BulletVehicle
Visual3D.EntityModel..::..ComponentBase
Visual3D.PhysicsNew..::..PhysicalEntity
Visual3D.PhysicsNew.Bullet..::..BulletVehicle