コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     xPos = transform.position.x;
     yPos = transform.position.y;
     zPos = transform.position.z;
     mass = 1;
     PhysicDLL.AddParticle3D(ref mass, ref xPos, ref yPos, ref zPos);
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     PhysicDLL.AddForce(2.0f, 2.0f, 0.0f);
     transform.position = new Vector3(xPos, yPos, zPos);
 }
コード例 #3
0
 // Start is called before the first frame update
 void Awake()
 {
     PhysicDLL.CreatePhysicsWorld();
 }
コード例 #4
0
 // Update is called once per frame
 void Update()
 {
     PhysicDLL.UpdatePhysicsWorld(Time.deltaTime);
 }