public class PhysicsStaticLine extends AbstractPhysicsObject
AbstractPhysicsObject.
Implemented using a polygon of 1 pixel height.
Note: all dimensions and positions are in pixels.f, name| Constructor and Description |
|---|
PhysicsStaticLine(String name,
Vector2 p1,
Vector2 p2)
Create PhysicsStaticLine between two points
|
PhysicsStaticLine(String name,
Vector2 p1,
Vector2 p2,
float density,
float restitution,
float friction)
Create PhysicsStaticLine between two points
|
applyBodyAngularImpulse, applyBodyForce, applyBodyForce, applyBodyForceToCenter, applyBodyForceToCenter, applyBodyLinearImpulse, applyBodyLinearImpulse, applyBodyTorque, beginContact, collision, createFixture, destroy, enableCollisionListener, endContact, getBody, getBodyAngle, getBodyAngleDeg, getBodyAngularDamping, getBodyAngularVelocity, getBodyFixtureList, getBodyGravityScale, getBodyInertia, getBodyLinearDamping, getBodyLinearVelocity, getBodyLinearVelocityFromLocalPoint, getBodyLinearVelocityFromWorldPoint, getBodyLinearVelocityPixels, getBodyLocalCenter, getBodyLocalPoint, getBodyLocalVector, getBodyMass, getBodyMassData, getBodyPosition, getBodyRadius, getBodyTransform, getBodyWorld, getBodyWorldCenter, getBodyWorldPoint, getBodyWorldVector, isBodyActive, isBodyAwake, isBodyBullet, isBodyFixedRotation, isBodySleepingAllowed, postSolve, preSolve, setBodyActive, setBodyAngularDamping, setBodyAwake, setBodyLinearDamping, setBodyLinearVelocity, setBodyLinearVelocity, setCollisionGroup, setSensorpublic PhysicsStaticLine(String name, Vector2 p1, Vector2 p2)
name - for debug purposesp1 - start pointp2 - destination pointpublic PhysicsStaticLine(String name, Vector2 p1, Vector2 p2, float density, float restitution, float friction)
name - for debug purposesp1 - start pointp2 - destination pointdensity - density parameter valuerestitution - restitution parameter valuefriction - friction parameter valueAbstractPhysicsObjectCopyright © 2014-2016 gdx2d - https://github.com/hevs-isi/gdx2d