PhysicsServer3DExtension

package
v0.0.0-...-2b43b64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package PhysicsServer3DExtension provides methods for working with PhysicsServer3DExtension object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsPhysicsServer3DExtension() Instance
}

type Implementation

type Implementation = implementation

Implementation implements Interface with empty methods.

type Instance

This class extends [PhysicsServer3D] by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. Intended for use with GDExtension to create custom implementations of [PhysicsServer3D].

See [Interface] for methods that can be overridden by a [Class] that extends it.

%!(EXTRA string=PhysicsServer3DExtension)

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsPhysicsServer3DExtension

func (self Instance) AsPhysicsServer3DExtension() Instance

func (Instance) BodyTestMotionIsExcludingBody

func (self Instance) BodyTestMotionIsExcludingBody(body RID.Body3D) bool

func (Instance) BodyTestMotionIsExcludingObject

func (self Instance) BodyTestMotionIsExcludingObject(obj int) bool

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Interface

type Interface interface {
	WorldBoundaryShapeCreate() RID.Any
	SeparationRayShapeCreate() RID.Any
	SphereShapeCreate() RID.Any
	BoxShapeCreate() RID.Any
	CapsuleShapeCreate() RID.Any
	CylinderShapeCreate() RID.Any
	ConvexPolygonShapeCreate() RID.Any
	ConcavePolygonShapeCreate() RID.Any
	HeightmapShapeCreate() RID.Any
	CustomShapeCreate() RID.Any
	ShapeSetData(shape RID.Any, data any)
	ShapeSetCustomSolverBias(shape RID.Any, bias Float.X)
	ShapeSetMargin(shape RID.Any, margin Float.X)
	ShapeGetMargin(shape RID.Any) Float.X
	ShapeGetType(shape RID.Any) gdclass.PhysicsServer3DShapeType
	ShapeGetData(shape RID.Any) any
	ShapeGetCustomSolverBias(shape RID.Any) Float.X
	SpaceCreate() RID.Any
	SpaceSetActive(space RID.Any, active bool)
	SpaceIsActive(space RID.Any) bool
	SpaceSetParam(space RID.Any, param gdclass.PhysicsServer3DSpaceParameter, value Float.X)
	SpaceGetParam(space RID.Any, param gdclass.PhysicsServer3DSpaceParameter) Float.X
	SpaceGetDirectState(space RID.Any) [1]gdclass.PhysicsDirectSpaceState3D
	SpaceSetDebugContacts(space RID.Any, max_contacts int)
	SpaceGetContacts(space RID.Any) []Vector3.XYZ
	SpaceGetContactCount(space RID.Any) int
	AreaCreate() RID.Any
	AreaSetSpace(area RID.Any, space RID.Any)
	AreaGetSpace(area RID.Any) RID.Any
	AreaAddShape(area RID.Any, shape RID.Any, transform Transform3D.BasisOrigin, disabled bool)
	AreaSetShape(area RID.Any, shape_idx int, shape RID.Any)
	AreaSetShapeTransform(area RID.Any, shape_idx int, transform Transform3D.BasisOrigin)
	AreaSetShapeDisabled(area RID.Any, shape_idx int, disabled bool)
	AreaGetShapeCount(area RID.Any) int
	AreaGetShape(area RID.Any, shape_idx int) RID.Any
	AreaGetShapeTransform(area RID.Any, shape_idx int) Transform3D.BasisOrigin
	AreaRemoveShape(area RID.Any, shape_idx int)
	AreaClearShapes(area RID.Any)
	AreaAttachObjectInstanceId(area RID.Any, id int)
	AreaGetObjectInstanceId(area RID.Any) int
	AreaSetParam(area RID.Any, param gdclass.PhysicsServer3DAreaParameter, value any)
	AreaSetTransform(area RID.Any, transform Transform3D.BasisOrigin)
	AreaGetParam(area RID.Any, param gdclass.PhysicsServer3DAreaParameter) any
	AreaGetTransform(area RID.Any) Transform3D.BasisOrigin
	AreaSetCollisionLayer(area RID.Any, layer int)
	AreaGetCollisionLayer(area RID.Any) int
	AreaSetCollisionMask(area RID.Any, mask int)
	AreaGetCollisionMask(area RID.Any) int
	AreaSetMonitorable(area RID.Any, monitorable bool)
	AreaSetRayPickable(area RID.Any, enable bool)
	AreaSetMonitorCallback(area RID.Any, callback Callable.Function)
	AreaSetAreaMonitorCallback(area RID.Any, callback Callable.Function)
	BodyCreate() RID.Any
	BodySetSpace(body RID.Any, space RID.Any)
	BodyGetSpace(body RID.Any) RID.Any
	BodySetMode(body RID.Any, mode gdclass.PhysicsServer3DBodyMode)
	BodyGetMode(body RID.Any) gdclass.PhysicsServer3DBodyMode
	BodyAddShape(body RID.Any, shape RID.Any, transform Transform3D.BasisOrigin, disabled bool)
	BodySetShape(body RID.Any, shape_idx int, shape RID.Any)
	BodySetShapeTransform(body RID.Any, shape_idx int, transform Transform3D.BasisOrigin)
	BodySetShapeDisabled(body RID.Any, shape_idx int, disabled bool)
	BodyGetShapeCount(body RID.Any) int
	BodyGetShape(body RID.Any, shape_idx int) RID.Any
	BodyGetShapeTransform(body RID.Any, shape_idx int) Transform3D.BasisOrigin
	BodyRemoveShape(body RID.Any, shape_idx int)
	BodyClearShapes(body RID.Any)
	BodyAttachObjectInstanceId(body RID.Any, id int)
	BodyGetObjectInstanceId(body RID.Any) int
	BodySetEnableContinuousCollisionDetection(body RID.Any, enable bool)
	BodyIsContinuousCollisionDetectionEnabled(body RID.Any) bool
	BodySetCollisionLayer(body RID.Any, layer int)
	BodyGetCollisionLayer(body RID.Any) int
	BodySetCollisionMask(body RID.Any, mask int)
	BodyGetCollisionMask(body RID.Any) int
	BodySetCollisionPriority(body RID.Any, priority Float.X)
	BodyGetCollisionPriority(body RID.Any) Float.X
	BodySetUserFlags(body RID.Any, flags int)
	BodyGetUserFlags(body RID.Any) int
	BodySetParam(body RID.Any, param gdclass.PhysicsServer3DBodyParameter, value any)
	BodyGetParam(body RID.Any, param gdclass.PhysicsServer3DBodyParameter) any
	BodyResetMassProperties(body RID.Any)
	BodySetState(body RID.Any, state gdclass.PhysicsServer3DBodyState, value any)
	BodyGetState(body RID.Any, state gdclass.PhysicsServer3DBodyState) any
	BodyApplyCentralImpulse(body RID.Any, impulse Vector3.XYZ)
	BodyApplyImpulse(body RID.Any, impulse Vector3.XYZ, position Vector3.XYZ)
	BodyApplyTorqueImpulse(body RID.Any, impulse Vector3.XYZ)
	BodyApplyCentralForce(body RID.Any, force Vector3.XYZ)
	BodyApplyForce(body RID.Any, force Vector3.XYZ, position Vector3.XYZ)
	BodyApplyTorque(body RID.Any, torque Vector3.XYZ)
	BodyAddConstantCentralForce(body RID.Any, force Vector3.XYZ)
	BodyAddConstantForce(body RID.Any, force Vector3.XYZ, position Vector3.XYZ)
	BodyAddConstantTorque(body RID.Any, torque Vector3.XYZ)
	BodySetConstantForce(body RID.Any, force Vector3.XYZ)
	BodyGetConstantForce(body RID.Any) Vector3.XYZ
	BodySetConstantTorque(body RID.Any, torque Vector3.XYZ)
	BodyGetConstantTorque(body RID.Any) Vector3.XYZ
	BodySetAxisVelocity(body RID.Any, axis_velocity Vector3.XYZ)
	BodySetAxisLock(body RID.Any, axis gdclass.PhysicsServer3DBodyAxis, lock bool)
	BodyIsAxisLocked(body RID.Any, axis gdclass.PhysicsServer3DBodyAxis) bool
	BodyAddCollisionException(body RID.Any, excepted_body RID.Any)
	BodyRemoveCollisionException(body RID.Any, excepted_body RID.Any)
	BodyGetCollisionExceptions(body RID.Any) []RID.Any
	BodySetMaxContactsReported(body RID.Any, amount int)
	BodyGetMaxContactsReported(body RID.Any) int
	BodySetContactsReportedDepthThreshold(body RID.Any, threshold Float.X)
	BodyGetContactsReportedDepthThreshold(body RID.Any) Float.X
	BodySetOmitForceIntegration(body RID.Any, enable bool)
	BodyIsOmittingForceIntegration(body RID.Any) bool
	BodySetStateSyncCallback(body RID.Any, callable Callable.Function)
	BodySetForceIntegrationCallback(body RID.Any, callable Callable.Function, userdata any)
	BodySetRayPickable(body RID.Any, enable bool)
	BodyTestMotion(body RID.Any, from Transform3D.BasisOrigin, motion Vector3.XYZ, margin Float.X, max_collisions int, collide_separation_ray bool, recovery_as_collision bool, result *MotionResult) bool
	BodyGetDirectState(body RID.Any) [1]gdclass.PhysicsDirectBodyState3D
	SoftBodyCreate() RID.Any
	SoftBodyUpdateRenderingServer(body RID.Any, rendering_server_handler [1]gdclass.PhysicsServer3DRenderingServerHandler)
	SoftBodySetSpace(body RID.Any, space RID.Any)
	SoftBodyGetSpace(body RID.Any) RID.Any
	SoftBodySetRayPickable(body RID.Any, enable bool)
	SoftBodySetCollisionLayer(body RID.Any, layer int)
	SoftBodyGetCollisionLayer(body RID.Any) int
	SoftBodySetCollisionMask(body RID.Any, mask int)
	SoftBodyGetCollisionMask(body RID.Any) int
	SoftBodyAddCollisionException(body RID.Any, body_b RID.Any)
	SoftBodyRemoveCollisionException(body RID.Any, body_b RID.Any)
	SoftBodyGetCollisionExceptions(body RID.Any) []RID.Any
	SoftBodySetState(body RID.Any, state gdclass.PhysicsServer3DBodyState, variant any)
	SoftBodyGetState(body RID.Any, state gdclass.PhysicsServer3DBodyState) any
	SoftBodySetTransform(body RID.Any, transform Transform3D.BasisOrigin)
	SoftBodySetSimulationPrecision(body RID.Any, simulation_precision int)
	SoftBodyGetSimulationPrecision(body RID.Any) int
	SoftBodySetTotalMass(body RID.Any, total_mass Float.X)
	SoftBodyGetTotalMass(body RID.Any) Float.X
	SoftBodySetLinearStiffness(body RID.Any, linear_stiffness Float.X)
	SoftBodyGetLinearStiffness(body RID.Any) Float.X
	SoftBodySetPressureCoefficient(body RID.Any, pressure_coefficient Float.X)
	SoftBodyGetPressureCoefficient(body RID.Any) Float.X
	SoftBodySetDampingCoefficient(body RID.Any, damping_coefficient Float.X)
	SoftBodyGetDampingCoefficient(body RID.Any) Float.X
	SoftBodySetDragCoefficient(body RID.Any, drag_coefficient Float.X)
	SoftBodyGetDragCoefficient(body RID.Any) Float.X
	SoftBodySetMesh(body RID.Any, mesh RID.Any)
	SoftBodyGetBounds(body RID.Any) AABB.PositionSize
	SoftBodyMovePoint(body RID.Any, point_index int, global_position Vector3.XYZ)
	SoftBodyGetPointGlobalPosition(body RID.Any, point_index int) Vector3.XYZ
	SoftBodyRemoveAllPinnedPoints(body RID.Any)
	SoftBodyPinPoint(body RID.Any, point_index int, pin bool)
	SoftBodyIsPointPinned(body RID.Any, point_index int) bool
	JointCreate() RID.Any
	JointClear(joint RID.Any)
	JointMakePin(joint RID.Any, body_A RID.Any, local_A Vector3.XYZ, body_B RID.Any, local_B Vector3.XYZ)
	PinJointSetParam(joint RID.Any, param gdclass.PhysicsServer3DPinJointParam, value Float.X)
	PinJointGetParam(joint RID.Any, param gdclass.PhysicsServer3DPinJointParam) Float.X
	PinJointSetLocalA(joint RID.Any, local_A Vector3.XYZ)
	PinJointGetLocalA(joint RID.Any) Vector3.XYZ
	PinJointSetLocalB(joint RID.Any, local_B Vector3.XYZ)
	PinJointGetLocalB(joint RID.Any) Vector3.XYZ
	JointMakeHinge(joint RID.Any, body_A RID.Any, hinge_A Transform3D.BasisOrigin, body_B RID.Any, hinge_B Transform3D.BasisOrigin)
	JointMakeHingeSimple(joint RID.Any, body_A RID.Any, pivot_A Vector3.XYZ, axis_A Vector3.XYZ, body_B RID.Any, pivot_B Vector3.XYZ, axis_B Vector3.XYZ)
	HingeJointSetParam(joint RID.Any, param gdclass.PhysicsServer3DHingeJointParam, value Float.X)
	HingeJointGetParam(joint RID.Any, param gdclass.PhysicsServer3DHingeJointParam) Float.X
	HingeJointSetFlag(joint RID.Any, flag gdclass.PhysicsServer3DHingeJointFlag, enabled bool)
	HingeJointGetFlag(joint RID.Any, flag gdclass.PhysicsServer3DHingeJointFlag) bool
	JointMakeSlider(joint RID.Any, body_A RID.Any, local_ref_A Transform3D.BasisOrigin, body_B RID.Any, local_ref_B Transform3D.BasisOrigin)
	SliderJointSetParam(joint RID.Any, param gdclass.PhysicsServer3DSliderJointParam, value Float.X)
	SliderJointGetParam(joint RID.Any, param gdclass.PhysicsServer3DSliderJointParam) Float.X
	JointMakeConeTwist(joint RID.Any, body_A RID.Any, local_ref_A Transform3D.BasisOrigin, body_B RID.Any, local_ref_B Transform3D.BasisOrigin)
	ConeTwistJointSetParam(joint RID.Any, param gdclass.PhysicsServer3DConeTwistJointParam, value Float.X)
	ConeTwistJointGetParam(joint RID.Any, param gdclass.PhysicsServer3DConeTwistJointParam) Float.X
	JointMakeGeneric6dof(joint RID.Any, body_A RID.Any, local_ref_A Transform3D.BasisOrigin, body_B RID.Any, local_ref_B Transform3D.BasisOrigin)
	Generic6dofJointSetParam(joint RID.Any, axis gd.Vector3Axis, param gdclass.PhysicsServer3DG6DOFJointAxisParam, value Float.X)
	Generic6dofJointGetParam(joint RID.Any, axis gd.Vector3Axis, param gdclass.PhysicsServer3DG6DOFJointAxisParam) Float.X
	Generic6dofJointSetFlag(joint RID.Any, axis gd.Vector3Axis, flag gdclass.PhysicsServer3DG6DOFJointAxisFlag, enable bool)
	Generic6dofJointGetFlag(joint RID.Any, axis gd.Vector3Axis, flag gdclass.PhysicsServer3DG6DOFJointAxisFlag) bool
	JointGetType(joint RID.Any) gdclass.PhysicsServer3DJointType
	JointSetSolverPriority(joint RID.Any, priority int)
	JointGetSolverPriority(joint RID.Any) int
	JointDisableCollisionsBetweenBodies(joint RID.Any, disable bool)
	JointIsDisabledCollisionsBetweenBodies(joint RID.Any) bool
	FreeRid(rid RID.Any)
	SetActive(active bool)
	Init()
	Step(step Float.X)
	Sync()
	FlushQueries()
	EndSync()
	Finish()
	IsFlushingQueries() bool
	GetProcessInfo(process_info gdclass.PhysicsServer3DProcessInfo) int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL