TerrainPatch
Package: Libraries.Game.Graphics.Worlds · Inherits from: Libraries.Game.Graphics.Worlds.Terrain, Libraries.Interface.Item3D, Libraries.Interface.Item, Libraries.Language.Object, Libraries.Game.Graphics.Model
A TerrainPatch is a rectangle of a terrain's samples that the physics engine can collide with. It is the shared part of TerrainRegionModel, which draws a whole region, and TerrainCollisionPiece, which only collides with a small square near the player. It is a Terrain, so the physics engine's HeightmapTerrainShape works with it unchanged. The shape asks the terrain for the corners of each triangle, and this class answers by reading the heights straight from the TerrainData, so the answers always match the current heights. A patch covers the samples from its first sample up to its size along x and z, and reaches one sample further, into whatever comes next, where that sample exists. That way neighboring patches share their edges and there are no gaps between them. The patch's own grid has one unit between samples. The vertex spacing is applied as its x and z scale, the way HeightmapTerrainShape expects. The patch sits at the lowest height it covers, and its heights are measured up from there, so the shape's box, which starts at the patch's position, holds all of the ground.
Example Code
use Libraries.Game.Graphics.Worlds.TerrainData
use Libraries.Game.Graphics.Worlds.TerrainPatch
TerrainData data
data:AddRegion(0, 0)
TerrainPatch patch
patch:Measure(data, 0, 0, 16)
patch:ApplyCollisionShape()
patch:PlaceInWorld()
Actions
ApplyCollisionShape()
This action gives the patch its sizes and its collision shape, from the last call to Measure. Once its width, height and depth are all set, Item3D gives it a plain box shape, so the terrain shape is set after them.
FillAtPixel(integer x, integer y, Libraries.Containers.Array<Libraries.Compute.Vector3> vertices, Libraries.Game.BoundingBox box, boolean leftTriangle)
This action fills in the three corners of one triangle of the ground, in the patch's own grid, and the box around them. The collision shape calls it for each triangle it tests. The heights are read from the TerrainData, so they are always the current ones. Each grid cell is split into two triangles: the left one is the top left, bottom left and top right corners, and the right one is the top right, bottom left and bottom right corners. This matches Terrain and the meshes TerrainRegionModel draws.
Parameters
xinteger: The cell's column. Cells past the last one use the last one.yinteger: The cell's row, which is along z.verticesLibraries.Containers.Array<Libraries.Compute.Vector3>: Exactly three vectors, which are filled with the triangle's corners.boxLibraries.Game.BoundingBox: The box to fill in around the triangle, pushed out by a small margin.leftTriangleboolean: True for the left triangle of the cell, false for the right one.
GetBaseHeight()
This action returns the lowest height the patch covers, which is the height it sits at.
Returns
number: The lowest height, in world units.
GetFirstSampleX()
This action returns the patch's first sample along x.
Returns
integer: The first sample along x.
GetFirstSampleZ()
This action returns the patch's first sample along z.
Returns
integer: The first sample along z.
GetPatchHeight(integer column, integer row)
This action returns the height of a sample, counted from the patch's first sample. Samples outside the patch can be asked for, which is how normals at the edges are worked out. Where no region holds a sample, the nearest sample inside the patch is used instead, so the ground is treated as continuing flat past the edge of the world.
Parameters
columninteger: The sample's column, counted from the patch's first sample.rowinteger: The sample's row, counted from the patch's first sample.
Returns
number: The height, in world units.
GetPixelHeight()
This action returns how many samples the patch covers along z. The collision shape reads this, as it does for Terrain.
Returns
integer: The number of samples along z.
GetPixelWidth()
This action returns how many samples the patch covers along x. The collision shape reads this, as it does for Terrain.
Returns
integer: The number of samples along x.
GetTerrainData()
This action returns the TerrainData the patch reads its heights from.
Returns
Libraries.Game.Graphics.Worlds.TerrainData: The terrain's data, or undefined if the patch has not been measured.
GetTopHeight()
This action returns the highest height the patch covers.
Returns
number: The highest height, in world units.
IsAffectedBy(integer minimumX, integer minimumZ, integer maximumX, integer maximumZ)
This action returns true if a change to a rectangle of samples would change this patch. Its heights reach one sample past its size, and the normals of anything drawn from it read one sample further on each side, so the rectangle is compared against the patch grown by one sample, and by two on the far sides.
Parameters
minimumXinteger: The rectangle's smallest sample along x.minimumZinteger: The rectangle's smallest sample along z.maximumXinteger: The rectangle's largest sample along x.maximumZinteger: The rectangle's largest sample along z.
Returns
boolean: True if the patch should be rebuilt.
Measure(Libraries.Game.Graphics.Worlds.TerrainData data, integer firstX, integer firstZ, integer size)
This action sets which samples the patch covers and finds the lowest and highest heights among them. It reaches one sample past its size along x, and along z, where that sample has a height.
Parameters
dataLibraries.Game.Graphics.Worlds.TerrainData: The heights of the whole terrain.firstXinteger: The patch's first sample along x.firstZinteger: The patch's first sample along z.sizeinteger: How many cells the patch covers along each side.
PlaceInWorld()
This action places the patch in the world and scales it to the vertex spacing. It is called after physics has been set up, the same order a game uses for Terrain.
Inherited Actions
110 actions from Libraries.Game.Graphics.Model
- CalculateBoundingBox()
- CalculateBoundingBox(Libraries.Game.BoundingBox box)
- CastsShadows()
- ClearCopies()
- Dispose()
- Draw(Libraries.Game.Graphics.Painter3D painter)
- EnableTransparency(boolean enable)
- ExtendBoundingBox(Libraries.Game.BoundingBox box)
- GetAnimation(integer index)
- GetAnimationState()
- GetAnimationsSize()
- GetAssetFile()
- GetBlueprintKey()
- GetColor(integer meshIndex)
- GetColor()
- GetCopyColors()
- GetCopyCount()
- GetCopyDrawingCache()
- GetCopyShades()
- GetCopyTransforms()
- GetCopyVersion()
- GetFileLights()
- GetFileLightsCastShadows()
- GetLoadLights()
- GetMeshCount()
- GetModelBlueprint()
- GetModelType()
- GetPartCount()
- GetPartName(integer part)
- GetRenderables(Libraries.Containers.Array<Libraries.Game.Graphics.Renderable> renderables)
- GetResources()
- GetShaderData()
- GetShaderMapping()
- GetShaderProgram()
- HasAnimations()
- HasHiddenParts()
- HasTransparency()
- IsAnimating()
- IsPartShown(integer part)
- IsShadowOnly()
- Load(text fileName)
- Load(Libraries.Game.Graphics.Models.ModelBlueprint loader, Libraries.Compute.Matrix4 matrix)
- Load(Libraries.System.File file)
- Load(Libraries.Game.Graphics.Models.ModelBlueprint loader)
- LoadBox(number width, number height, number depth, Libraries.Game.Graphics.Drawable drawable)
- LoadBox(number width, number height, number depth, Libraries.Game.Graphics.Color color)
- LoadBox(number width, number height, number depth, text textureFile)
- LoadBox(number width, number height, number depth, Libraries.System.File textureFile)
- LoadBox(number width, number height, number depth, Libraries.Game.Graphics.Texture texture)
- LoadCylinder(number width, number height, number depth, Libraries.Game.Graphics.Drawable drawable)
- LoadCylinder(number width, number height, number depth, Libraries.Game.Graphics.Color color)
- LoadCylinder(number width, number height, number depth, integer divisions, Libraries.Game.Graphics.Drawable drawable)
- LoadCylinder(number width, number height, number depth, integer divisions, Libraries.System.File textureFile)
- LoadCylinder(number width, number height, number depth, Libraries.System.File textureFile)
- LoadCylinder(number width, number height, number depth, integer divisions, Libraries.Game.Graphics.Texture texture)
- LoadCylinder(number width, number height, number depth, Libraries.Game.Graphics.Texture texture)
- LoadCylinder(number width, number height, number depth, integer divisions, text textureFile)
- LoadCylinder(number width, number height, number depth, text textureFile)
- LoadCylinder(number width, number height, number depth, integer divisions, Libraries.Game.Graphics.Color color)
- LoadPlane(number width, number depth, text textureFile)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Drawable drawable, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Color color, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture, Libraries.Compute.Vector4 textureCoordinates)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture, Libraries.Compute.Vector4 textureCoordinates, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.System.File textureFile, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture, Libraries.Compute.Vector4 textureCoordinates, boolean doubleSided, boolean unlit, boolean blended)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture)
- LoadPlane(number width, number depth, text textureFile, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.System.File textureFile)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture, boolean doubleSided)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Color color)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Drawable drawable)
- LoadPlane(number width, number depth, Libraries.Game.Graphics.Texture texture, Libraries.Compute.Vector4 textureCoordinates, boolean doubleSided, boolean unlit)
- LoadSphere(number width, number height, number depth, integer horizontalDivisions, integer verticalDivisions, Libraries.Game.Graphics.Texture texture)
- LoadSphere(number width, number height, number depth, Libraries.Game.Graphics.Texture texture)
- LoadSphere(number width, number height, number depth, text textureFile)
- LoadSphere(number width, number height, number depth, integer horizontalDivisions, integer verticalDivisions, text textureFile)
- LoadSphere(number width, number height, number depth, integer horizontalDivisions, integer verticalDivisions, Libraries.System.File textureFile)
- LoadSphere(number width, number height, number depth, Libraries.Game.Graphics.Color color)
- LoadSphere(number width, number height, number depth, integer horizontalDivisions, integer verticalDivisions, Libraries.Game.Graphics.Color color)
- LoadSphere(number width, number height, number depth, Libraries.System.File textureFile)
- LoadSphere(number width, number height, number depth, integer horizontalDivisions, integer verticalDivisions, Libraries.Game.Graphics.Drawable drawable)
- LoadSphere(number width, number height, number depth, Libraries.Game.Graphics.Drawable drawable)
- PauseAnimation()
- Print(Libraries.System.File file)
- Print(text path)
- Print(text path, Libraries.Fabrication.Profiles.Profile profile)
- ResumeAnimation()
- Scale(Libraries.Compute.Vector3 vector, boolean scaleChildren)
- SetAnimationState(Libraries.Game.Graphics.Models.Data.AnimationState animationState)
- SetCastsShadows(boolean castsShadows)
- SetColor(Libraries.Game.Graphics.Color color)
- SetColor(integer meshIndex, Libraries.Game.Graphics.Color color)
- SetCopies(Libraries.Containers.Number32BitArray transforms, Libraries.Containers.Number32BitArray shades)
- SetCopyColors(Libraries.Containers.Number32BitArray colors)
- SetCopyDrawingCache(Libraries.Language.Object cache)
- SetFileLightsCastShadows(boolean casts)
- SetLayer(Libraries.Game.Layer3D parentLayer)
- SetLoadLights(boolean load)
- SetPartShown(integer part, boolean shown)
- SetPartShown(text name, boolean shown)
- SetScale(number scaleX, number scaleY, number scaleZ, boolean scaleChildren)
- SetShaderData(Libraries.Language.Object shaderData)
- SetShaderMapping(Libraries.Game.Graphics.Shaders.ShaderMapping shaderMapping)
- SetShaderProgram(Libraries.Game.Graphics.Shaders.Programs.ShaderProgram shaderProgram)
- SetShadowOnly(boolean value)
- SetSway(number strength, number directionDegrees)
- StartAnimation(integer index)
- StopAnimation()
- UpdateAll(number seconds)
14 actions from Libraries.Game.Graphics.Worlds.Terrain
- FillAtPixel(integer x, integer y, Libraries.Containers.Array<Libraries.Compute.Vector3> vertices, Libraries.Game.BoundingBox box)
- GetRenderBounds(Libraries.Game.BoundingBox local)
- GetStickHeight()
- GetStickLength()
- GetStickWidth()
- GetTextureSplat()
- LoadHeightMap(Libraries.System.File file)
- LoadHeightMap(text path)
- LoadHeightMap(Libraries.Game.Graphics.PixelMap map, text key)
- Print(Libraries.System.File file, Libraries.Fabrication.Profiles.Profile profile)
- SetHeightScale(number stickHeight)
- SetStickDepth(number stickDepth)
- SetStickWidth(number stickWidth)
- SetTextureSplat(Libraries.Game.Graphics.Worlds.TextureSplat textureSplat)
62 actions from Libraries.Interface.Item
- AddBehavior(Libraries.Interface.Behaviors.Behavior behavior)
- AddFocusListener(Libraries.Interface.Events.FocusListener listener)
- AddGestureListener(Libraries.Interface.Events.GestureListener listener)
- AddMouseListener(Libraries.Interface.Events.MouseListener listener)
- AddMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- AddMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- AddTouchListener(Libraries.Interface.Events.TouchListener listener)
- BeginCollision(Libraries.Interface.Item item)
- CancelBehaviors()
- DisposeAll()
- DisposeChildren()
- EmptyAll()
- EmptyChildren()
- FinishCollision(Libraries.Interface.Item item)
- Focus()
- GainedFocus(Libraries.Interface.Events.FocusEvent event)
- GetAccessibilityCode()
- GetAccessibilityRoleDescription()
- GetAccessibilityType()
- GetActiveDescendant()
- GetDescription()
- GetFocusListeners()
- GetGestureListeners()
- GetInputGroup()
- GetInputTable()
- GetMouseListeners()
- GetMouseMovementListeners()
- GetMouseWheelListeners()
- GetName()
- GetNextFocus()
- GetPreviousFocus()
- GetPropertiesSize()
- GetProperty(text key)
- GetPropertyKeyIterator()
- GetTouchListeners()
- HasProperties()
- HasProperty(text key)
- Hide()
- IsAcceptingMouseInput()
- IsAccessibleParent()
- IsFocusable()
- IsFocused()
- IsShowing()
- LostFocus(Libraries.Interface.Events.FocusEvent event)
- RemoveFocusListener(Libraries.Interface.Events.FocusListener listener)
- RemoveGestureListener(Libraries.Interface.Events.GestureListener listener)
- RemoveMouseListener(Libraries.Interface.Events.MouseListener listener)
- RemoveMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- RemoveMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- RemoveTouchListener(Libraries.Interface.Events.TouchListener listener)
- SetAcceptsMouseInput(boolean accepts)
- SetAccessibilityCode(integer newAccessibilityCode)
- SetAccessibilityRoleDescription(text newRoleDescription)
- SetDescription(text newDescription)
- SetFocusable(boolean focus)
- SetInputGroup(text group)
- SetName(text newName)
- SetNextFocus(Libraries.Interface.Item next)
- SetPreviousFocus(Libraries.Interface.Item previous)
- SetProperty(text key, Libraries.Data.Formats.JavaScriptObjectNotation value)
- Show()
- Update(number secondsSinceUpdate)
211 actions from Libraries.Interface.Item3D
- Add(Libraries.Interface.Item3D newItem)
- Add(integer index, Libraries.Interface.Item3D newItem)
- AddShadowLight(integer bit, integer frame)
- ApplyAngularImpulse(Libraries.Compute.Vector3 impulse)
- ApplyDamping(number seconds)
- ApplyForce(Libraries.Compute.Vector3 force, Libraries.Compute.Vector3 point)
- ApplyForceToCenter(Libraries.Compute.Vector3 force)
- ApplyImpulse(Libraries.Compute.Vector3 impulse, Libraries.Compute.Vector3 localPositionToApply)
- ApplyLinearImpulse(Libraries.Compute.Vector3 impulse, Libraries.Compute.Vector3 point)
- ApplyLinearImpulseToCenter(Libraries.Compute.Vector3 impulse)
- ApplyTorque(Libraries.Compute.Vector3 torque)
- ApplyTorqueImpulse(Libraries.Compute.Vector3 torque)
- CanRotate(boolean flag)
- CollideWithChildren()
- ComputeAngularImpulseDenominator(Libraries.Compute.Vector3 axis)
- ComputeImpulseDenominator(Libraries.Compute.Vector3 position, Libraries.Compute.Vector3 normal)
- CreateNodes(Libraries.Game.Collision.BroadphaseCollision3D broadphase, Libraries.Game.Collision.PhysicsPosition3D transform)
- DestroyNodes(Libraries.Game.Collision.BroadphaseCollision3D broadphase)
- Empty()
- EnablePhysics(boolean flag)
- FastMoving(boolean flag)
- GetAccessibilityCursor()
- GetAccessibleParent()
- GetAngularDamping()
- GetAngularFactor()
- GetAngularVelocity()
- GetBoundingBox(integer childIndex)
- GetCenterOfMassPosition()
- GetCenterOfMassTransform()
- GetCollisionGroupFlag()
- GetCollisionGroupIndex()
- GetCollisionList()
- GetCollisionTransform()
- GetCollisionTransform0()
- GetDepth()
- GetDimensions()
- GetDrawnTransform()
- GetForce()
- GetFriction()
- GetGlobalPosition()
- GetGlobalX()
- GetGlobalY()
- GetGlobalZ()
- GetHeight()
- GetInterpolatedAngularVelocity()
- GetInterpolatedLinearVelocity()
- GetInterpolationTransform()
- GetInterpolationWorldTransform()
- GetInverseInertiaLocal()
- GetInverseInertiaWorld()
- GetInverseMass()
- GetItem(integer index)
- GetItemCount()
- GetItems()
- GetJointList()
- GetLayer()
- GetLights(Libraries.Containers.Array<Libraries.Game.Graphics.Light> array)
- GetLights()
- GetLinearDamping()
- GetLinearVelocity()
- GetLinearVelocityAtLocalPoint(Libraries.Compute.Vector3 relativePosition)
- GetMass()
- GetNode(integer index)
- GetNodeCount()
- GetNodes()
- GetOffsetX()
- GetOffsetY()
- GetOffsetZ()
- GetOrientation()
- GetParent()
- GetPhysicsProperties()
- GetPitch()
- GetPosition()
- GetPushVelocity()
- GetResponsiveness()
- GetRestitution()
- GetRoll()
- GetRotationTransform()
- GetScaleX()
- GetScaleY()
- GetScaleZ()
- GetScreenBounds()
- GetScreenBoundsOfBox(Libraries.Game.BoundingBox box)
- GetScreenX()
- GetScreenY()
- GetShadowLightMask(integer frame)
- GetShape()
- GetShapeOffset()
- GetShapeTransform()
- GetShapeType()
- GetSleepTime()
- GetTimeOfImpact()
- GetTorque()
- GetTransform()
- GetTurnVelocity()
- GetWidth()
- GetX()
- GetY()
- GetYaw()
- GetZ()
- HasMoved()
- HasReportedMove()
- HasShapeOffset()
- IntegrateVelocities(number seconds)
- InternalApplyImpulse(Libraries.Compute.Vector3 linearComponent, Libraries.Compute.Vector3 angularComponent, number impulseMagnitude)
- IsCollidable()
- IsEmpty()
- IsFastMoving()
- IsNonResponsive()
- IsOnLayer()
- IsPhysicsEnabled()
- IsResponsive()
- IsRotationAllowed()
- IsSimulated()
- IsSimulationRequired()
- IsUnmovable()
- Move(Libraries.Compute.Vector3 vector)
- Move(number xAmount, number yAmount, number zAmount)
- MoveX(number xAmount)
- MoveY(number yAmount)
- MoveZ(number zAmount)
- NotifyMoved()
- PredictIntegratedTransform(number seconds, Libraries.Game.Collision.PhysicsPosition3D predictedTransform)
- ProceedToTransform(Libraries.Game.Collision.PhysicsPosition3D transform)
- ProcessGestureEvent(Libraries.Interface.Events.GestureEvent event)
- ProcessMouseEvent(Libraries.Interface.Events.MouseEvent event)
- ProcessTouchEvent(Libraries.Interface.Events.TouchEvent event)
- Remove(integer index)
- Remove(Libraries.Interface.Item3D removed)
- RequireSimulation(boolean flag)
- ResetMass()
- Rotate(Libraries.Compute.Vector3 vector, number degrees)
- Rotate(number rotateX, number rotateY, number rotateZ, number degrees, boolean rotateChildren)
- Rotate(Libraries.Compute.Vector3 vector, number degrees, boolean rotateChildren)
- Rotate(number rotateX, number rotateY, number rotateZ, number degrees)
- RotateAround(Libraries.Compute.Vector3 point, Libraries.Compute.Vector3 axis, number degrees)
- RotateAround(Libraries.Compute.Vector3 point, Libraries.Compute.Vector3 axis, number degrees, boolean rotateChildren)
- RotateChildren(number rotateX, number rotateY, number rotateZ, number degrees)
- RotateChildren(Libraries.Compute.Vector3 vector, number degrees)
- SaveKinematicState(number time)
- Scale(Libraries.Compute.Vector3 vector)
- Scale(number scaleX, number scaleY, number scaleZ, boolean scaleChildren)
- Scale(number scaleX, number scaleY, number scaleZ)
- SetAngularDamping(number angularDamping)
- SetAngularVelocity(Libraries.Compute.Vector3 angularVelocity)
- SetCenterOfMassTransform(Libraries.Game.Collision.PhysicsPosition3D transform)
- SetCollidable(boolean flag)
- SetCollideWithChildren(boolean flag)
- SetCollisionGroupFlag(boolean flag)
- SetCollisionGroupIndex(integer index)
- SetCollisionList(Libraries.Game.Collision.CollisionEdge3D list)
- SetCollisionTransform(Libraries.Game.Collision.PhysicsPosition3D transform)
- SetCollisionTransform0(Libraries.Game.Collision.PhysicsPosition3D transform)
- SetDepth(number setDepth)
- SetDimensions(number setWidth, number setHeight, number setDepth)
- SetDimensions(Libraries.Compute.Vector3 vector)
- SetDrawnTransform(Libraries.Game.Collision.PhysicsPosition3D transform)
- SetForce(Libraries.Compute.Vector3 force)
- SetFriction(number friction)
- SetHasMoved(boolean flag)
- SetHeight(number setHeight)
- SetInterpolatedAngularVelocity(Libraries.Compute.Vector3 velocity)
- SetInterpolatedLinearVelocity(Libraries.Compute.Vector3 velocity)
- SetInterpolationTransform(Libraries.Game.Collision.PhysicsPosition3D transform)
- SetItem(integer index, Libraries.Interface.Item3D newItem)
- SetJointList(Libraries.Game.Physics.Joints.JointEdge3D list)
- SetLinearDamping(number linearDamping)
- SetLinearVelocity(Libraries.Compute.Vector3 linearVelocity)
- SetLinearVelocityX(number linearVelocityX)
- SetLinearVelocityY(number linearVelocityY)
- SetLinearVelocityZ(number linearVelocityZ)
- SetMass(number mass)
- SetNonResponsive()
- SetOffset(number xAmount, number yAmount, number zAmount)
- SetOffset(Libraries.Compute.Vector3 vector)
- SetOffsetX(number xAmount)
- SetOffsetY(number yAmount)
- SetOffsetZ(number zAmount)
- SetParent(Libraries.Interface.Item3D newItem)
- SetPhysicsProperties(Libraries.Game.Physics.PhysicsProperties3D properties)
- SetPosition(Libraries.Compute.Vector3 vector)
- SetPosition(number setX, number setY, number setZ)
- SetReportedMove(boolean value)
- SetResponsive()
- SetResponsiveness(integer type)
- SetRestitution(number restitution)
- SetRotationTransform(Libraries.Compute.Matrix4 source)
- SetScale(number scaleX, number scaleY, number scaleZ)
- SetScaleX(number scale, boolean scaleChildren)
- SetScaleX(number scale)
- SetScaleY(number scale, boolean scaleChildren)
- SetScaleY(number scale)
- SetScaleZ(number scale)
- SetScaleZ(number scale, boolean scaleChildren)
- SetScreenPositionFromPhysicsPosition()
- SetShape(Libraries.Game.Collision.Shapes.CollisionShape3D shape)
- SetShapeOffset(number x, number y, number z)
- SetSleepTime(number time)
- SetTimeOfImpact(number timeOfImpact)
- SetTorque(Libraries.Compute.Vector3 torque)
- SetUnmovable()
- SetWidth(number setWidth)
- SetX(number setX)
- SetY(number setY)
- SetYawPitchRoll(number yaw, number pitch, number roll)
- SetZ(number setZ)
- ShouldCollide(Libraries.Interface.Item3D otherItem)
- Simulate(boolean flag)
- SimulationChanged()
- SynchronizeNodes()
- UpdateInertia()