Terrain
Package: Libraries.Game.Graphics.Worlds · Inherits from: Libraries.Interface.Item3D, Libraries.Interface.Item, Libraries.Language.Object, Libraries.Game.Graphics.Model
This is a default and very primitive Terrain class that can be used to store data from a height map image.
Example Code
use Libraries.Game.Game
use Libraries.Game.Game
use Libraries.Game.Graphics.PixelMap
use Libraries.System.File
use Libraries.Game.Graphics.Color
use Libraries.Compute.BitwiseOperations
use Libraries.Game.Graphics.Worlds.Terrain
use Libraries.Game.Graphics.DirectionalLight
use Libraries.Game.Graphics.PointLight
use Libraries.Game.Graphics.Camera
use Libraries.Game.Graphics.Worlds.Terrain
class Main is Game
Terrain terrain
action Main
UseVulkan(true)
StartGame()
end
action CreateGame
File file
file:SetPath("Terrain.png")
terrain:LoadHeightMap(file)
number scale = 0.5
terrain:Scale(scale,scale,scale)
terrain:SetY(-15)
terrain:SetX(-25)
terrain:SetZ(10)
Color color
Add(terrain)
DirectionalLight light
light:SetIntensity(3)
light:SetColor(color:LightGray())
light:SetDirection(-1, -5, -1)
Add(light)
PointLight light2
light2:SetIntensity(100)
light2:SetColor(color:Green())
light2:SetPosition(0, 3, -15)
Add(light2)
end
action Update(number seconds)
Camera camera = GetCamera3D()
camera:Move(0,0,2 * seconds)
end
end
Actions
FillAtPixel(integer x, integer y, Libraries.Containers.Array<Libraries.Compute.Vector3> vertices, Libraries.Game.BoundingBox box, boolean leftTriangle)
This action fills the vertices for a single pixel at the position x,z. The position is put into two places, the first three vertices in the already filled vertices array, and the bounding box is computed. If any of these objects are undefined, this will crash, as this action is an optimization to reduce memory and increase reuse.
Parameters
xinteger: the x in the pixel mapyinteger: the y in the pixel map, which translates to z in the heightmap.verticesLibraries.Containers.Array<Libraries.Compute.Vector3>: This array must be filled with exactly three vectors, representing the triangle created in the mesh. Attrbiute: Parameter box the location of the bounding box to fill from the triangle.boxLibraries.Game.BoundingBoxleftTriangleboolean: Whether it is the left or right triangle in the mesh.
FillAtPixel(integer x, integer y, Libraries.Containers.Array<Libraries.Compute.Vector3> vertices, Libraries.Game.BoundingBox box)
The model data needs a unique ID, the meshes, and materials.
Parameters
xintegeryintegerverticesLibraries.Containers.Array<Libraries.Compute.Vector3>boxLibraries.Game.BoundingBox
GetPixelHeight()
Calculate the tangents
Returns
integer
GetPixelWidth()
Calculate the bitangents
Returns
integer
GetRenderBounds(Libraries.Game.BoundingBox local)
This action fills in the box around the terrain's mesh, in its own coordinates. The mesh starts at the terrain's position, at one corner, and runs one unit per height sample across and deep, as tall as its highest point. The terrain's scale is in its transform, so it is not applied here.
Parameters
localLibraries.Game.BoundingBox: The box to fill in.
Returns
boolean: True, or false if the terrain has not been built yet.
GetStickHeight()
This action get the amount to scale the height values. By default, they are scaled by 30 * some amount of white in the pixel in the heightmap, which is itself scaled from 0 to 1. Thus, we have 0 to 30 by default.
Returns
number
GetStickLength()
We likely want to let the user map materials and textures.
Returns
number
GetStickWidth()
This action get the amount to scale the height values. By default, they are scaled by 30 * some amount of white in the pixel in the heightmap, which is itself scaled from 0 to 1. Thus, we have 0 to 30 by default.
Returns
number
GetTextureSplat()
This action fills in the box around the terrain's mesh, in its own coordinates. The mesh starts at the terrain's position, at one corner, and runs one unit per height sample across and deep, as tall as its highest point. The terrain's scale is in its transform, so it is not applied here.
Returns
Libraries.Game.Graphics.Worlds.TextureSplat: True, or false if the terrain has not been built yet.
LoadHeightMap(Libraries.System.File file)
This action loads a height map from a gray scale image. The amount of white in every pixel generates the height in the model.
Parameters
LoadHeightMap(text path)
This action loads a height map from a gray scale image. The amount of white in every pixel generates the height in the model.
Parameters
pathtext
LoadHeightMap(Libraries.Game.Graphics.PixelMap map, text key)
This action loads a height map from a gray scale image. The amount of white in every pixel generates the height in the model.
Parameters
mapLibraries.Game.Graphics.PixelMapkeytext: This is a key used by the cache. If this is called from the file version, it is the absolute path by default.
Print(Libraries.System.File file, Libraries.Fabrication.Profiles.Profile profile)
This action makes a 3D printer file (G-code) of the height map, with the printer, filament and settings in the profile. The ground is made into a solid block with straight sides and a flat 2 millimeter base, as large as fits on the profile's bed (its longer side is 80% of the bed), with hills in true proportion. Print(file) and Print(path), with no profile, print for a generic printer the same way.
Parameters
fileLibraries.System.File: Where to write the G-code.profileLibraries.Fabrication.Profiles.Profile: The printer settings to slice with.
Example
use Libraries.Game.Game
use Libraries.Game.Graphics.Worlds.Terrain
use Libraries.System.File
use Libraries.Fabrication.Profiles.ProfileManager
class Main is Game
Terrain terrain
action Main
StartGame()
end
action CreateGame
terrain:LoadHeightMap("heightmap.png")
Add(terrain)
ProfileManager profiles
profiles:Load("Profiles/profiles.json")
File file
file:SetPath("Prints/heightmap.gcode")
terrain:Print(file, profiles:Require("ender3-v2"))
end
end
SetHeightScale(number stickHeight)
This action get the amount to scale the height values. By default, they are scaled by 30 * some amount of white in the pixel in the heightmap, which is itself scaled from 0 to 1. Thus, we have 0 to 30 by default.
Parameters
stickHeightnumber
SetStickDepth(number stickDepth)
Calculate the indices
Parameters
stickDepthnumber
SetStickWidth(number stickWidth)
This action get the amount to scale the height values. By default, they are scaled by 30 * some amount of white in the pixel in the heightmap, which is itself scaled from 0 to 1. Thus, we have 0 to 30 by default.
Parameters
stickWidthnumber
SetTextureSplat(Libraries.Game.Graphics.Worlds.TextureSplat textureSplat)
This action makes a 3D printer file (G-code) of the height map, with the printer, filament and settings in the profile. The ground is made into a solid block with straight sides and a flat 2 millimeter base, as large as fits on the profile's bed (its longer side is 80% of the bed), with hills in true proportion. Print(file) and Print(path), with no profile, print for a generic printer the same way.
Parameters
textureSplatLibraries.Game.Graphics.Worlds.TextureSplat
Example
use Libraries.Game.Game
use Libraries.Game.Graphics.Worlds.Terrain
use Libraries.System.File
use Libraries.Fabrication.Profiles.ProfileManager
class Main is Game
Terrain terrain
action Main
StartGame()
end
action CreateGame
terrain:LoadHeightMap("heightmap.png")
Add(terrain)
ProfileManager profiles
profiles:Load("Profiles/profiles.json")
File file
file:SetPath("Prints/heightmap.gcode")
terrain:Print(file, profiles:Require("ender3-v2"))
end
end
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)
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()