protected DistanceJoint(IWorldPool argWorld, final DistanceJointDef def) { super(argWorld, def); m_localAnchorA = def.localAnchorA.clone(); m_localAnchorB = def.localAnchorB.clone(); m_length = def.length; m_impulse = 0.0f; m_frequencyHz = def.frequencyHz; m_dampingRatio = def.dampingRatio; m_gamma = 0.0f; m_bias = 0.0f; }
/** * Copies from the given mass data * * @param md * mass data to copy from */ public MassData(MassData md) { mass = md.mass; I = md.I; center = md.center.clone(); }
/** * Creates an AABB object using the given bounding vertices. * * @param lowerVertex the bottom left vertex of the bounding box * @param maxVertex the top right vertex of the bounding box */ public AABB(final Vec2 lowerVertex, final Vec2 upperVertex) { this.lowerBound = lowerVertex.clone(); // clone to be safe this.upperBound = upperVertex.clone(); }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** Initialize as a copy of another transform. */ public Transform(final Transform xf) { p = xf.p.clone(); q = xf.q.clone(); }
/** * Creates a manifold point as a copy of the given point * @param cp point to copy from */ public ManifoldPoint(final ManifoldPoint cp) { localPoint = cp.localPoint.clone(); normalImpulse = cp.normalImpulse; tangentImpulse = cp.tangentImpulse; id = new ContactID(cp.id); }
/** Initialize using a position vector and a rotation matrix. */ public Transform(final Vec2 _position, final Rot _R) { p = _position.clone(); q = _R.clone(); }
protected DistanceJoint(IWorldPool argWorld, final DistanceJointDef def) { super(argWorld, def); m_localAnchorA = def.localAnchorA.clone(); m_localAnchorB = def.localAnchorB.clone(); m_length = def.length; m_impulse = 0.0f; m_frequencyHz = def.frequencyHz; m_dampingRatio = def.dampingRatio; m_gamma = 0.0f; m_bias = 0.0f; }
/** * Creates an AABB object using the given bounding vertices. * * @param lowerVertex the bottom left vertex of the bounding box * @param maxVertex the top right vertex of the bounding box */ public AABB(final Vec2 lowerVertex, final Vec2 upperVertex) { this.lowerBound = lowerVertex.clone(); // clone to be safe this.upperBound = upperVertex.clone(); }
/** * Copies from the given mass data * * @param md * mass data to copy from */ public MassData(MassData md) { mass = md.mass; I = md.I; center = md.center.clone(); }
/** * Creates this manifold as a copy of the other * * @param other */ public Manifold(Manifold other) { points = new ManifoldPoint[Settings.maxManifoldPoints]; localNormal = other.localNormal.clone(); localPoint = other.localPoint.clone(); pointCount = other.pointCount; type = other.type; // djm: this is correct now for (int i = 0; i < Settings.maxManifoldPoints; i++) { points[i] = new ManifoldPoint(other.points[i]); } }
/** Initialize as a copy of another transform. */ public Transform(final Transform xf) { p = xf.p.clone(); q = xf.q.clone(); }
/** * Creates a manifold point as a copy of the given point * @param cp point to copy from */ public ManifoldPoint(final ManifoldPoint cp) { localPoint = cp.localPoint.clone(); normalImpulse = cp.normalImpulse; tangentImpulse = cp.tangentImpulse; id = new ContactID(cp.id); }
/** Initialize using a position vector and a rotation matrix. */ public Transform(final Vec2 _position, final Rot _R) { p = _position.clone(); q = _R.clone(); }
protected DistanceJoint(IWorldPool argWorld, final DistanceJointDef def) { super(argWorld, def); m_localAnchorA = def.localAnchorA.clone(); m_localAnchorB = def.localAnchorB.clone(); m_length = def.length; m_impulse = 0.0f; m_frequencyHz = def.frequencyHz; m_dampingRatio = def.dampingRatio; m_gamma = 0.0f; m_bias = 0.0f; }
/** Initialize using a position vector and a rotation matrix. */ public Transform(final Vec2 _position, final Rot _R) { p = _position.clone(); q = _R.clone(); }
/** * Creates a manifold point as a copy of the given point * @param cp point to copy from */ public ManifoldPoint(final ManifoldPoint cp) { localPoint = cp.localPoint.clone(); normalImpulse = cp.normalImpulse; tangentImpulse = cp.tangentImpulse; id = new ContactID(cp.id); }
/** Initialize using a position vector and a rotation matrix. */ public Transform(final Vec2 _position, final Rot _R) { p = _position.clone(); q = _R.clone(); }