mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Revert "Updated demo script"
This reverts commit b288411d1f16d499f59ac89a5070dc88889ed043.
This commit is contained in:
parent
b8565b2b80
commit
161cdcb02d
|
|
@ -38,16 +38,6 @@ function CustomCheetah::onAdd(%this, %obj)
|
|||
%itemRock.car = %obj;
|
||||
%obj.mountObject(%itemRock, %this.turretSlot, "-1.4 0 .5 0 0 1 0");
|
||||
|
||||
// RigidShape
|
||||
%rigidRock = new RigidShape() {
|
||||
datablock = BouncingBoulder;
|
||||
scale = "0.2 0.2 0.2";
|
||||
};
|
||||
%rigidRock.setShapeName("RigidShape");
|
||||
%obj.rigidRock = %itemRock;
|
||||
%rigidRock.car = %obj;
|
||||
%obj.mountObject(%rigidRock, %this.turretSlot, "0 1.4 .6 0 0 1 0");
|
||||
|
||||
// Vehicle
|
||||
%vehicleMount = new WheeledVehicle() {
|
||||
datablock = CheetahCar;
|
||||
|
|
@ -82,12 +72,6 @@ function CustomCheetah::onRemove(%this, %obj)
|
|||
%obj.vehicleMount.delete();
|
||||
}
|
||||
|
||||
if( isObject(%obj.rigidRock) )
|
||||
{
|
||||
%obj.unmountObject(%obj.rigidRock);
|
||||
%obj.rigidRock.delete();
|
||||
}
|
||||
|
||||
if( isObject(%obj.itemRock) )
|
||||
{
|
||||
%obj.unmountObject(%obj.itemRock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue