Remember me
You are here: HomeForumCyberix3D ForumFeature RequestsAsset/Project manager
Welcome, Guest
Username: Password: Remember me

TOPIC: How do i best use set Velocity ?

How do i best use set Velocity ? 8 years 8 months ago #126

Hi !!

Tried in many different ways to set Velocity x, y or z to any number, both inside a loop and outside but it doesn't want to move the object it's in.
What i'm i doing wrong ?

Cheers
The administrator has disabled public write access.

How do i best use set Velocity ? 8 years 8 months ago #127

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
Linear Velocity works only on objects with collision.
We have made an example of using Linear Velocity for you:
www.gamemaker3d.com/player?pid=0164923

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Andreas-Malmqvist

How do i best use set Velocity ? 8 years 8 months ago #128

Great, just what i wanted in that example.
A question related to the demo..
Is there a way to set bounciness, elasticity of an object ?

Cheers
Last Edit: 8 years 8 months ago by Andreas-Malmqvist.
The administrator has disabled public write access.

How do i best use set Velocity ? 8 years 8 months ago #130

www.gamemaker3d.com/player?pid=0463844924
Added a camera and jump only when on ground, prevents air jumping..
NOT my creation, just modified it
But why if i hold down spacebar the cubes after a while starts to spin ?

Cheers
The administrator has disabled public write access.

How do i best use set Velocity ? 8 years 8 months ago #131

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
It starts spinning because of the impact with the ground.

In order to prevent this, You need to set the Rotation X, Y, Z to 0 in each loop.

B.T.W - There is a small bug that prevents the setting of Velocity when the object is not moving.
Until we resolve this issue, You can use the Force command with X,Y,Z=0 and power=1 as a workaround.

We have updated the example (clear your browser cache):
www.gamemaker3d.com/player?pid=0164923

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Andreas-Malmqvist

How do i best use set Velocity ? 8 years 8 months ago #132

Thanks, but is it possible to set Bounciness/elasticity on an object ?
The administrator has disabled public write access.

How do i best use set Velocity ? 8 years 8 months ago #133

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
Coefficient of restitution is not supported yet, But we will add support for it in the next few days.
The administrator has disabled public write access.
The following user(s) said Thank You: Andreas-Malmqvist

How do i best use set Velocity ? 8 years 8 months ago #158

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
The Coefficient of restitution feature has been added.
In order to use it, You need to set the "restitution" property of the object to a number between 0 to 1.
We have updated the example:
www.gamemaker3d.com/player?pid=0164923
Regards,
Cyberix3D team
The administrator has disabled public write access.

How do i best use set Velocity ? 8 years 8 months ago #161

Works like a charm, well done Cyberix !!

Ps, don't forget to add the function to the updates section ;)

Cheers
The administrator has disabled public write access.
Time to create page: 0.081 seconds