Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

PhysicsHandleExtensions.Get

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static PhysicsWorld Get(PhysicsWorld physicsWorld);

Parameters

Parameter Description
physicsWorld The world to return.

Returns

PhysicsWorld The same world.

Description

Returns this world in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use world.Get().gravity = gravity in place of world.gravity = gravity.


Declaration

public static PhysicsBody Get(PhysicsBody physicsBody);

Parameters

Parameter Description
physicsBody The body to return.

Returns

PhysicsBody The same body.

Description

Returns this body in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use body.Get().linearVelocity = velocity in place of body.linearVelocity = velocity.


Declaration

public static PhysicsShape Get(PhysicsShape physicsShape);

Parameters

Parameter Description
physicsShape The shape to return.

Returns

PhysicsShape The same shape.

Description

Returns this shape in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use shape.Get().property = value in place of shape.property = value.


Declaration

public static PhysicsComposer Get(PhysicsComposer physicsComposer);

Parameters

Parameter Description
physicsComposer The composer to return.

Returns

PhysicsComposer The same composer.

Description

Returns this composer in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use composer.Get().useDelaunay = useDelaunay in place of composer.useDelaunay = useDelaunay.


Declaration

public static PhysicsChain Get(PhysicsChain physicsChain);

Parameters

Parameter Description
physicsChain The chain to return.

Returns

PhysicsChain The same chain.

Description

Returns this chain in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use chain.Get().friction = friction in place of chain.friction = friction.


Declaration

public static PhysicsJoint Get(PhysicsJoint physicsJoint);

Parameters

Parameter Description
physicsJoint The joint to return.

Returns

PhysicsJoint The same joint.

Description

Returns this joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsDistanceJoint Get(PhysicsDistanceJoint physicsDistanceJoint);

Parameters

Parameter Description
physicsDistanceJoint The distance joint to return.

Returns

PhysicsDistanceJoint The same distance joint.

Description

Returns this distance joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsFixedJoint Get(PhysicsFixedJoint physicsFixedJoint);

Parameters

Parameter Description
physicsFixedJoint The fixed joint to return.

Returns

PhysicsFixedJoint The same fixed joint.

Description

Returns this fixed joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsHingeJoint Get(PhysicsHingeJoint physicsHingeJoint);

Parameters

Parameter Description
physicsHingeJoint The hinge joint to return.

Returns

PhysicsHingeJoint The same hinge joint.

Description

Returns this hinge joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsIgnoreJoint Get(PhysicsIgnoreJoint physicsIgnoreJoint);

Parameters

Parameter Description
physicsIgnoreJoint The ignore joint to return.

Returns

PhysicsIgnoreJoint The same ignore joint.

Description

Returns this ignore joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsRelativeJoint Get(PhysicsRelativeJoint physicsRelativeJoint);

Parameters

Parameter Description
physicsRelativeJoint The relative joint to return.

Returns

PhysicsRelativeJoint The same relative joint.

Description

Returns this relative joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsSliderJoint Get(PhysicsSliderJoint physicsSliderJoint);

Parameters

Parameter Description
physicsSliderJoint The slider joint to return.

Returns

PhysicsSliderJoint The same slider joint.

Description

Returns this slider joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.


Declaration

public static PhysicsWheelJoint Get(PhysicsWheelJoint physicsWheelJoint);

Parameters

Parameter Description
physicsWheelJoint The wheel joint to return.

Returns

PhysicsWheelJoint The same wheel joint.

Description

Returns this wheel joint in a form that can be written through.

See PhysicsHandleExtensions for why this is needed. Use joint.Get().property = value in place of joint.property = value.