Skip to content

TypeInitialisationException was unhandled at new BulletSharp.RaycastVehicle(); #31

@mifwarior

Description

@mifwarior

Having TypeInitialisationException was unhandled at new BulletSharp.RaycastVehicle();

public void SetupVechine(DynamicsWorld world, CollisionShape shape, Matrix vehicleTr, DefaultVehicleRaycaster raycaster)
{
RigidBody carChassis = LocalCreateRigidBody(800, vehicleTr, shape);

        carChassis.UserObject = "Chassis";
        carChassis.SetDamping(0.2f, 0.2f);

        world.AddRigidBody(carChassis);

        RaycastVehicle.VehicleTuning tuning = new RaycastVehicle.VehicleTuning();
        vehicle = new BulletSharp.RaycastVehicle(tuning, carChassis, raycaster);

}

reproduce at newest version, with old version it's all okey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions