Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
[BUG] ccbSetPhysicsVelocity() doesn't work correctly on camera node

pk12
Registered User
Quote
2018-06-28 19:59:23

Reproduction steps:
- Create First Person Shooter Camera named "camera"
- Create a plane under camera (as ground)
- Change Physics Engine to Physics simulation
- Run this code in game:
var camera = ccbGetSceneNodeFromName("camera")
ccbSetPhysicsVelocity(camera, 100, 0, 0)

Result:
- Camera will very quickly "jump" to new position rather than move smoothly like other physics objects. Note that this happens only for X and Z axis, it works correctly for Y axis.

Target: Windows


niko
Moderator
Quote
2018-06-29 08:03:19

Interesting, thanks for reporting!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact