Hi,
When I am raycasting a line on the ground the arclen constantly changes.
It's micro-values at the moment, but it is a problem for the final thing I am working on.
The two points of the line are going to direct the wheels and I'll subdivide the line to get the center point.
This center point is then going to drive the body of the vehicle.
So when the arclen constantly changes, the vehicles body is wiggling a lot too…
Someone who knows a solution?
Keeping the same length when raycasting a line on bumpy ground?
1569 6 0- Klonkel
- Member
- 70 posts
- Joined: March 2016
- Offline
- CYTE
- Member
- 679 posts
- Joined: Feb. 2017
- Offline
- Klonkel
- Member
- 70 posts
- Joined: March 2016
- Offline
- CYTE
- Member
- 679 posts
- Joined: Feb. 2017
- Offline
- CYTE
- Member
- 679 posts
- Joined: Feb. 2017
- Offline
Hey Chris,
I think the issue is created by the bumpiness of the terrain. this way the rays hit the ground on different elevation levels. this difference in elevation adds to the final arclen. maybe you could correct the length of the line after the raycast with a wrangler.
Cheers
CYTE
I think the issue is created by the bumpiness of the terrain. this way the rays hit the ground on different elevation levels. this difference in elevation adds to the final arclen. maybe you could correct the length of the line after the raycast with a wrangler.
Cheers
CYTE
Edited by CYTE - Feb. 21, 2019 15:17:33
- Klonkel
- Member
- 70 posts
- Joined: March 2016
- Offline
- CYTE
- Member
- 679 posts
- Joined: Feb. 2017
- Offline
-
- Quick Links