本文整理汇总了Java中org.jbox2d.common.Vec3.setZero方法的典型用法代码示例。如果您正苦于以下问题:Java Vec3.setZero方法的具体用法?Java Vec3.setZero怎么用?Java Vec3.setZero使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jbox2d.common.Vec3
的用法示例。
在下文中一共展示了Vec3.setZero方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WeldJoint
import org.jbox2d.common.Vec3; //导入方法依赖的package包/类
protected WeldJoint(IWorldPool argWorld, WeldJointDef def) {
super(argWorld, def);
m_localAnchorA = new Vec2(def.localAnchorA);
m_localAnchorB = new Vec2(def.localAnchorB);
m_referenceAngle = def.referenceAngle;
m_frequencyHz = def.frequencyHz;
m_dampingRatio = def.dampingRatio;
m_impulse = new Vec3();
m_impulse.setZero();
}
示例2: WeldJoint
import org.jbox2d.common.Vec3; //导入方法依赖的package包/类
/**
* @param argWorld
* @param def
*/
protected WeldJoint(IWorldPool argWorld, WeldJointDef def) {
super(argWorld, def);
m_localAnchorA = new Vec2(def.localAnchorA);
m_localAnchorB = new Vec2(def.localAnchorB);
m_referenceAngle = def.referenceAngle;
m_impulse = new Vec3();
m_impulse.setZero();
m_mass = new Mat33();
}
示例3: WeldJoint
import org.jbox2d.common.Vec3; //导入方法依赖的package包/类
/**
* @param argWorld
* @param def
*/
protected WeldJoint(WorldPool argWorld, WeldJointDef def) {
super(argWorld, def);
m_localAnchorA = new Vec2(def.localAnchorA);
m_localAnchorB = new Vec2(def.localAnchorB);
m_referenceAngle = def.referenceAngle;
m_impulse = new Vec3();
m_impulse.setZero();
m_mass = new Mat33();
}