Attach entity to vehicle (car)
Sorry for strange question :)
How to attach object(brush entity) to vehicle ? (Moving and turning it with car.) I tried, but I can only move it with car (like origin += neworigin - oldorigin). How to add angles/and move coordinates with these angles ? (Full attach) |
Re: Attach entity to vehicle (car)
Code:
|
Re: Attach entity to vehicle (car)
I got server error :
--------------------------- Fatal error - Dedicated server --------------------------- SV_HullForEntity: SOLID_BSP without MOVETYPE_PUSH --------------------------- ОК --------------------------- I change SOLID_BSP to SOLID_BBOX and ... got strange result. It works, but brush entity attached to vehicle, got big offset from needed point. How to works MOVETYPE_FOLLOW? Possible to simulate it manual ? (func_breakable stop works after MOVETYPE_FOLLOW) |
Re: Attach entity to vehicle (car)
Code:
// Just copy angles and origin of parent |
Re: Attach entity to vehicle (car)
You could try to make your own point entity that acts as func_breakable? Setting origin to brush entities directly this way might make them act weird, aiment wasn't meant to work with them (that's why entity_set_origin exists).
The offset might be because the origin of the vehicle isn't where you need it to be? In that case, aiment might not be useful anyway, you'd still need to manipulate the entity origin to compensate for that offset... (and yeah, that would look choppy). |
Re: Attach entity to vehicle (car)
I tried attach for example 'func_breakable' (brush entity from map) to vehicle.
Yes, set_origin works, but not rotate func_breakable with vehicle, and with some problems. Possible need use velocity/speed/ etc instead of change origin. But it very hard ? |
Re: Attach entity to vehicle (car)
Quote:
Possible aiment not works because func_breakable from map (brush) not have 'rotation point' ? It can be changed manually ? I found https://forums.alliedmods.net/showpo...7&postcount=11 but it only for angles. |
Re: Attach entity to vehicle (car)
Yeah, that's another problem. It would be pretty much impossible to achieve smooth movement without aiment.
You could try mimicking the velocity instead of origin but it would be a pain with the collision checking. |
Re: Attach entity to vehicle (car)
If editing the brush model is an option, you could move it so it'd better align with the car.
|
| All times are GMT -4. The time now is 01:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.